• No products in the cart.

301.1.8-Lab of Hadoop

LAB: Hadoop Sandbox

LAB: Demo Hadoop Sandbox

  • Install Oracle VM virtual box or VM Player
  • Load Hadoop VMware Image

LAB: Starting Hadoop

  • Go to home folder
        ls
        cd ..

  • Start Hadoop
        start-all.sh

  • If above command doesn’t work, then use the following command:
        start-dfs.sh
        start-yarn.sh

  • Check name node and data nodes
        jps

LAB: HDFS Files

  • The files on HDFS
        hadoop fs -ls /

  • Check in the browser
http://localhost:50070

LAB: Copy from Local to HDFS

  • Move files to HDFS
        hadoop fs -copyFromLocal /home/hduser/datasets/Stock_Price_Data/stock_price.txt /test_on_dfs
  • The files on HDFS
        hadoop fs -ls /

  • Delete files from HDFS
        hadoop fs -rmr /test_on_dfs
  • The files on HDFS now
        hadoop fs -ls /