This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
start [2015/10/23 21:23] dmtolpeko [Installing HPL/SQL from Binaries] |
start [2016/02/24 06:29] dmtolpeko [Installing HPL/SQL from Binaries] |
||
---|---|---|---|
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 36: | Line 54: | ||
<code> | <code> | ||
<hplsql_dir>/hplsql --version | <hplsql_dir>/hplsql --version | ||
+ | HPL/SQL x.x.x | ||
+ | </code> | ||
+ | |||
+ | Or when executed from the current directory: | ||
+ | |||
+ | |||
+ | <code> | ||
+ | ./hplsql --version | ||
HPL/SQL x.x.x | HPL/SQL x.x.x | ||
</code> | </code> | ||
Line 41: | Line 67: | ||
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 81: | ||
</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 ===== |