【问题标题】:greenplum hadoop in greenplum how to configure to generate gphdfs.sogreenplum中的greenplum hadoop如何配置生成gphdfs.so
【发布时间】:2016-12-15 09:09:07
【问题描述】:

在greenplum中如何配置生成gphdfs.so? 当我

postgres=# CREATE EXTERNAL TABLE csv_hdfs_lineitem (like a) LOCATION ( 'gphdfs://xxxxx/gptest/lineitem.csv' ) FORMAT 'text' (delimiter E'|' null E'\N' escape E'off' fill missing fields) ENCODING 'UTF8' ;

它显示

错误:协议“gphdfs”不存在

【问题讨论】:

  • 'ls gphdfs://xxxxx/gptest/lineitem.csv' 在 shell 中工作吗?...
  • 因为它缺少 gphdfs.sql
  • dfs -ls hdfs://xxxxx/gptest/lineitem.csv - 有效吗?
  • 它可以工作,它与 hdfs 没有任何关系

标签: hadoop greenplum


【解决方案1】:

您需要运行 Greenplum 包中包含的 SQL 脚本。你会在$GPHOME/share/postgresql/cdb_external_extensions.sql中找到相同的脚本

运行这个:

psql -f $GPHOME/share/postgresql/cdb_external_extensions.sql

希望这会有所帮助..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多