Installing the cde-env tool
You can install the cde-env tool as an
Administrator or as a normal user. Cloudera
recommends you to install the tool as an Administrator in the
/opt/cloudera/bin folder so that all the users in the host can access the
tool.
- Install the tool by copying the required binary and script files to the
/opt/cloudera/binfolder so that the migration tool can run in the current gateway host.$ ./cde-env.sh enable-spark-submit-proxy - Enable the installed binary and script files by granting access to those files for all
users on the host using one of the following options.
- Link the existing
/usr/bin/spark-submitand/usr/bin/spark3-submit.$ ln -s /opt/cloudera/bin/cde /usr/bin/cde $ ln -s /opt/cloudera/bin/cde-env.sh /usr/bin/cde-env.sh $ ln -s -f /opt/cloudera/bin/spark-submit /usr/bin/spark-submit $ ln -s -f /opt/cloudera/bin/spark3-submit /usr/bin/spark3-submitor
- Update
PATHto point to the new installation location at the host level.$ export PATH=/opt/cloudera/bin:$PATH
- Link the existing
- Install the tool on the host by running the following command:
By default, the binary and script files will be installed in the
$HOME/binfolder. You can change the location by replacing the$HOME/binfolder to the target folder in the following command.Linux$ sed -i "s#CLOUDERA_BIN=/opt/cloudera/bin#CLOUDERA_BIN=$HOME/bin#g" cde-env.sh && ./cde-env.sh enable-spark-submit-proxy -f privateMacOS$ sed -i '' "s#CLOUDERA_BIN=/opt/cloudera/bin#CLOUDERA_BIN=$HOME/bin#g" cde-env.sh && ./cde-env.sh enable-spark-submit-proxy -f private - Update
PATHto give access to those binary and script files.$ export PATH=$HOME/bin:$PATH
