case studyassessing risk when loaning money table list of common hadoop file system commands goal hadoop file system command local file system command change the permission of files hadoop fs -chmod mode uri chmod mode uri move or rename file hadoop fs -mv olduri newuri mv olduri newuri there are two special commands you'll use often these are upload files from the local file system to the distributed file system (hadoop fs -put localuri remoteuridownload file from the distributed file system to the local file system (hadoop -get remoteurilet' clarify this with an example suppose you have csv file on the linux virtual machine from which you connect to the linux hadoop cluster you want to copy the csv file from your linux virtual machine to the cluster hdfs use the command hadoop -put mycsv csv /data using putty we can start python session on the horton sandbox to retrieve our data using python script issue the "pysparkcommand in the command line to start the session if all is well you should see the welcome screen shown in figure figure the welcome screen of spark for interactive use with python now we use python code to fetch the data for usas shown in the following listing listing drawing in the lending club loan data import requests import zipfile import stringio source requests get("loanstats csv zip"verify=falsestringio stringio stringio(source contentunzipped zipfile zipfile(stringiounzips data downloads data from lending club this is https so it should verifybut we won' bother (verify=falsecreates virtual file