Installing HDP Manually
Also available as:
PDF
loading table of contents...

Upload the Pig, Hive and Sqoop tarballs to HDFS

Upload the Pig, Hive and Sqoop tarballs to HDFS as the $HDFS_User. The following code shows an example:

hdfs dfs -mkdir -p /hdp/apps/2.2.9.0-$BUILD/pig/
hdfs dfs -mkdir -p /hdp/apps/2.2.9.0-$BUILD/hive/
hdfs dfs -mkdir -p /hdp/apps/2.2.9.0-$BUILD/sqoop/
hdfs dfs -put /usr/hdp/2.2.9.0-$BUILD/pig/pig.tar.gz /hdp/apps/2.2.9.0-$BUILD/pig/
hdfs dfs -put /usr/hdp/2.2.9.0-$BUILD/hive/hive.tar.gz /hdp/apps/2.2.9.0-$BUILD/hive/
hdfs dfs -put /usr/hdp/2.2.9.0-$BUILD/sqoop/sqoop.tar.gz /hdp/apps/2.2.9.0-$BUILD/sqoop/
hdfs dfs -chmod -R 555 /hdp/apps/2.2.9.0-$BUILD/pig
hdfs dfs -chmod -R 444 /hdp/apps/2.2.9.0-$BUILD/pig/pig.tar.gz
hdfs dfs -chmod -R 555 /hdp/apps/2.2.9.0-$BUILD/hive
hdfs dfs -chmod -R 444 /hdp/apps/2.2.9.0-$BUILD/hive/hive.tar.gz
hdfs dfs -chmod -R 555 /hdp/apps/2.2.9.0-$BUILD/sqoop
hdfs dfs -chmod -R 444 /hdp/apps/2.2.9.0-$BUILD/sqoop/sqoop.tar.gz
hdfs dfs -chown -R hdfs:hadoop /hdp