This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
start [2015/10/23 21:23] dmtolpeko [Installing HPL/SQL from Binaries] |
start [2015/10/23 21:36] dmtolpeko |
||
---|---|---|---|
Line 29: | Line 29: | ||
chmod +x <hplsql_dir>/hplsql | chmod +x <hplsql_dir>/hplsql | ||
</code> | </code> | ||
+ | |||
+ | **2. Configure CLASSPATH** (Optional) | ||
+ | |||
+ | For Cloudera distributions, you can edit //hplsql// file, remove all lines containing | ||
+ | |||
+ | <code> | ||
+ | export "HADOOP_CLASSPATH=..." | ||
+ | </code> | ||
+ | |||
+ | and add the following line | ||
+ | |||
+ | <code> | ||
+ | export "HADOOP_CLASSPATH=/opt/cloudera/parcels/CDH/jars/*" | ||
+ | </code> | ||
+ | |||
+ | For Hortonworks distributions check if Hadoop jars are located in /usr/hdp/x.x.x.x-x/ directory and change all paths in //hplsql// file accordingly. | ||
+ | |||
+ | For other distributions check whether Hadoop jars are located in /usr/lib/, and make necessary changes in //hplsql// file. | ||
- | **2. Test installation** | + | **3. Test installation** |
Run the following command to test HPL/SQL installation: | Run the following command to test HPL/SQL installation: | ||
Line 41: | Line 59: | ||
If the version number is printed the tool is installed correctly. | If the version number is printed the tool is installed correctly. | ||
- | **3. Add to PATH variable** (Optional) | + | **4. Add to PATH variable** (Optional) |
You may add HPL/SQL directory to PATH variable: | You may add HPL/SQL directory to PATH variable: | ||
Line 55: | Line 73: | ||
</code> | </code> | ||
- | **4. Configure CLASSPATH** (Optional) | ||
- | For Cloudera distributions, you can edit //hplsql// file, remove all lines containing | ||
- | |||
- | <code> | ||
- | export "HADOOP_CLASSPATH=..." | ||
- | </code> | ||
- | |||
- | and add the following line | ||
- | |||
- | <code> | ||
- | export "HADOOP_CLASSPATH=/opt/cloudera/parcels/CDH/jars/*" | ||
- | </code> | ||
===== Configuration ===== | ===== Configuration ===== |