hadoop hive shell中绝对URI中的相对路径 | 珊瑚贝

Relative path in absolute URI in hadoop hive shell


当我尝试从 shell 提示符执行 .hql 文件时,我收到以下错误。谁能告诉我我错过了什么?

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: hdfs://localhost:9000./=/usr/local/hadoop/usr/Move

Query.hql 包含:

1
create table if not exists MOVE(value string) location ‘${hiveconf:Move_Path}’;

在shell提示符下我使用这个命令来执行文件:

1
$ HIVE_HOME/bin/hive  -hiveconf Move_Path =/usr/POC/Move -f /home/ram/Source_Files/Source_code/Query.hql

我不确定我需要将什么传递给 “Move_Path” 参数 – 目前我将其设置为 “/usr/POC/Move” – 这是正确的吗?

  • 感谢重播。它正在工作,你很棒。


Move_Path 和 =/usr/POC/Move 之间有一个额外的空格(应该删除)。试试这个它会工作:

1
$HIVE_HOME/bin/hive -hiveconf Move_Path=/usr/POC/Move -f /home/ram/Source_Files/Source_code/Query.hql

来源:https://www.codenong.com/29282977/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10427.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?