4. Create Directories on HDFS

  1. Create Hive user home on HDFS.

    Login as $HDFS_USER
    hadoop fs -mkdir /user/$HIVE_USER
    hadoop fs -chown $HIVE_USER:$HIVE_USER/user/$HIVE_USER

  2. Create warehouse directory on HDFS.

    hadoop fs -mkdir /apps/hive/warehouse
     hadoop fs -chown -R $HIVE_USER:users /apps/hive/warehouse
     hadoop fs -chmod -R 775 /apps/hive/warehouse  
    


loading table of contents...