HPL/SQL与CDH5.4.7集成

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=${0%/*}

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.13]# ./hplsql --version
HPL/SQL 0.3.13
[root@node1 hplsql-0.3.13]# 

 

你可能感兴趣的:(HPL/SQL与CDH5.4.7集成)