2017-01-23 40 views
0

我们有一些Greenplum数据库。PIVOTAL GPDB-外部表gphdfs协议命令以错误结束。 sh:java:command not found

当试图读取其中的外部表得到错误

proddb=# select count(*) from ext_table; 
ERROR: external table gphdfs protocol command ended with error. sh: java: command not found (seg0 slice1 sdw: 
40000 pid=8675) 
DETAIL: 
Command: 'gphdfs://path/to/hdfs External table revenuereport_stg0, file gphdfs://Path/to/hdfs 

我们尝试:Greenplum的主控主机上

检查Java ENV。

也检查,设置 - 该参数GPDB

[gpadmin @管理〜] $ gpconfig -c gp_hadoop_home -v “ '/ usr/lib中/ gphd'” [gpadmin @管理〜] $ gpconfig -c gp_hadoop_target_version -v “ 'gphd-2.0'”

但与此错误

[[email protected] ~]$ gpconfig -c gp_hadoop_home -v "'/usr/lib/gphd'" 
20170123:02:02:04:017762 gpconfig:mdw:gpadmin-[ERROR]:-failed updating the postgresql.conf files on host: sdw 
20170123:02:02:04:017762 gpconfig:mdw:gpadmin-[ERROR]:-failed updating the postgresql.conf files on host: mdw 
20170123:02:02:09:017762 gpconfig:mdw:gpadmin-[ERROR]:-finished with errors 

因此失败,测试从Greenplum的主机HDFS访问无法正常工作。

Checked if HDFS is accessible from any of the segment servers 

[[email protected] ~]$hdfs dfs -ls hdfs://hdm2:8020/ 

任何帮助,将不胜感激!

回答

1
+0

设置JAVA_HOME后。仍然相同的错误。 – NEO

相关问题