내용

글번호 179
작성자 heojk
작성일 2016-11-05 16:40:34
제목 hdfs dfs
내용 [hadoop@master ~]$ cd Downloads/ [hadoop@master Downloads]$ ls 2008.csv.bz2 flume-cdh-twitter.jar airline_ddl.hsql hadoop-2.7.3.tar.gz airports.csv HadoopPrj.zip Americal President Speech.zip hive-site.xml apache-flume-1.6.0-bin.tar.gz jdk-8u111-linux-x64.tar.gz apache-hive-1.2.1-bin.tar.gz log_agent.conf apache-hive-1.2.1-src.tar.gz protobuf-2.5.0.tar.gz apache-maven-3.3.3-bin.tar.gz RainApplication.zip carriers.csv Speech_WordCount.zip createTableAirline.hsql twitter_agent.conf eclipse-jee-mars-1-linux-gtk-x86_64.tar.gz weatherDelay.hsql emp.zip word count top n.txt [hadoop@master Downloads]$ bunzip2 2008.csv.bz2 [hadoop@master Downloads]$ hdfs dfs -ls / [hadoop@master Downloads]$ hdfs dfs -mkdir /airline/ [hadoop@master Downloads]$ hdfs dfs -put 2008.csv /airline/ [hadoop@master Downloads]$ hdfs dfs -ls /airline/ Found 1 items -rw-r--r-- 2 hadoop supergroup 689413344 2016-11-05 00:38 /airline/2008.csv [hadoop@master Downloads]$ hdfs dfs -cat /airline/2008.csv | head -3 Year,Month,DayofMonth,DayOfWeek,DepTime,CRSDepTime,ArrTime,CRSArrTime,UniqueCarrier,FlightNum,TailNum,ActualElapsedTime,CRSElapsedTime,AirTime,ArrDelay,DepDelay,Origin,Dest,Distance,TaxiIn,TaxiOut,Cancelled,CancellationCode,Diverted,CarrierDelay,WeatherDelay,NASDelay,SecurityDelay,LateAircraftDelay 2008,1,3,4,2003,1955,2211,2225,WN,335,N712SW,128,150,116,-14,8,IAD,TPA,810,4,8,0,,0,NA,NA,NA,NA,NA 2008,1,3,4,754,735,1002,1000,WN,3231,N772SW,128,145,113,2,19,IAD,TPA,810,5,10,0,,0,NA,NA,NA,NA,NA cat: Unable to write to output stream. [hadoop@master Downloads]$