本文共 867 字,大约阅读时间需要 2 分钟。
在使用sqlline.py脚本连接Hadoop集群时,可能会遇到以下错误提示:
[root@hadoop15 module]# /opt/module/phoenix-hbase-2.4-5.1.2/bin/sqlline.py hadoop15,hadoop16,hadoop17:2181
错误信息提示:
java.lang.IllegalArgumentException: Bad history file syntax! The history file `/root/.sqlline/history` may be an older history: please remove it or use a different history file.
错误原因:
/root/.sqlline/history。确认文件位置:
/root/.sqlline/history文件确实存在。解决方案:
删除历史文件:
rm /root/.sqlline/history
重新运行脚本:
/opt/module/phoenix-hbase-2.4-5.1.2/bin/sqlline.py hadoop15,hadoop16,hadoop17:2181
通过以上步骤,可以有效解决sqlline.py连接Hadoop集群时因旧历史文件引起的错误,确保脚本能够正常运行。
转载地址:http://dqvfk.baihongyu.com/