1.下载hplsql-0.3.13到本地并解压
2.修改plsql,为如下内容
#!/bin/bash export "HADOOP_CLASSPATH=/opt/cloudera/parcels/CDH/jars/*" export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=/usr/lib/hadoop/lib/native" SCRIPTPATH=${%/*} java -cp $SCRIPTPATH:$HADOOP_CLASSPATH:$SCRIPTPATH/hplsql-0.3.13.jar:$SCRIPTPATH/antlr-runtime-4.5.jar $HADOOP_OPTS org.apache.hive.hplsql.Hplsql "$@"
3.简单测试
[root@node1 hplsql-0.3.]# ./hplsql --version
HPL/SQL 0.3.
[root@node1 hplsql-0.3.]#