Screen starting DFS, YARN and Rstudio
Starting DFS, YARN and Rstudio

Starting Hadoop, R studio and Rhadoop

We need to quickly check whether everything is working in our virtual machine and to become familiar with the environment we will be working with.

Open the terminal by clicking on the black icon on the bottom left and type
hadoop fs -ls

Then type

rstudio &

to open the Rstudio GUI. We should open an Rscript file and save it to the local of any other folder up to our choice. Next we should set up system variables by copyin the following lines into the script file and execut them:


We load RHadoop by loading the libraries rhdfs and rmr2 and executing hdfs.init():


You might see the log and some warning messages, but no filesystem errors while executing the above commands. There might be some glyph rendering errors, which we can simply ignore.

Try to quit and stop the Hadoop servers by using counterpart commands and in terminal.

Share this article:

This article is from the free online course:

Managing Big Data with R and Hadoop

Partnership for Advanced Computing in Europe (PRACE)