Install Python for the Python transformation on Hadoop

Install Python for the Python transformation on Hadoop

Set environment variables

Set environment variables

Set the following environment variables:
PYTHONHOME
Run the following command to set the
$PYTHONHOME
environment variable:
export PYTHONHOME=$workingdir/Python3
Notice that
$PYTHONHOME
is the directory where we installed Python.
LD_LIBRARY_PATH
Run the following command to set the
$LD_LIBRARY_PATH
environment variable:
export LD_LIBRARY_PATH=$PYTHONHOME/lib
PATH
Run the following command to set the
$PATH
environment variable:
export PATH=$PYTHONHOME/bin:$PATH

0 COMMENTS

We’d like to hear from you!