Greenplum错误输入路径不存在

时间:2016-10-05 15:07:50

标签: hadoop greenplum hawq

我们有一个小的gpdb集群。当我尝试使用来自gpdb master的'gphdfs'协议读取外部表时。  环境

产品版本 Pivotal Greenplum(GPDB)4.3.8.2 OS Centos 6.5

获取错误:

prod=# select * from ext_table;                                                                                      ERROR:  external table gphdfs protocol command ended with error. 16/10/05 14:42:51 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable  (seg0 slice1 host.domain.com:40000 pid=25491)
DETAIL:

Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://path/to/hdfs
        at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:285)
        at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:340)
        at com.
Command: 'gphdfs://path/to/hdfs'
External table tableame, file gphdfs://path/to/hdfs

我们尝试过: 关注Greenplum主机上的链接 https://discuss.pivotal.io/hc/en-us/articles/219403388-How-to-eliminate-error-message-WARN-util-NativeCodeLoader-Unable-to-load-native-hadoop-library-for-your-platform-with-gphdfs

命令结果

更改" Hadoop-env.sh"中的内容后,它无效。如链接中所示。仍然抛出相同的错误。我需要重新启动gpdb以影响更改" Hadoop-env.sh"。

或者

是否有其他方法可以处理gphdfs协议错误?

对此有任何帮助将不胜感激?

附加的是外部表失败的DDL

create external table schemaname.exttablename(
"ID" INTEGER,
time timestamp without time zone,
"SalesOrder" char(6),
"NextDetailLine" decimal(6),
"OrderStatus" char(1),

)
location('gphdfs://hadoopmster.com:8020/devgpdb/filename.txt') FORMAT 'text'

2 个答案:

答案 0 :(得分:2)

请你提供失败的外部表DDL。还请确保gpadmin用户有权访问hdfs路径以读取和写入数据。 谢谢 Pratheesh Nair

答案 1 :(得分:0)

相关问题