flatmap的用法,还有关于sql的udf
hadoop fs -mkdir /scdata hadoop fs -mkdir /scdata/riskModel 2042 sudo hdfs dfsadmin -safemode leave 2043 hdfs dfsadmin -safemode leave 2044 sudo /hdfs dfsadmin -safemode leave 2045 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2046 sudo hdfs dfsadmin -safemode leave 2047 hadoop fs -ls\ 2048 hadoop fs -ls 2049 hadoop fs -ls / 2050 hadoop fs -df 2051 df -h 2052 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2053 sudo hdfs dfsadmin -safemode leave 2054 hdfs dfsadmin -safemode leave 2055 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2056 hadoop dfsadmin -safemode leave 2057 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2058 sudo hadoop dfsadmin -safemode leave 2059 hadoop dfsadmin -safemode leave 2060 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2061 sudo -u scdata hdfs dfsadmin -safemode leave 2062 sudo -u scdata hadoop dfsadmin -safemode leave 2063 ll 2064 ll | hadoop 2065 pwd 2066 sudo -u scdata /bin/hadoop dfsadmin -safemode leave 2067 hadoop dfsadmin -safemode forceExit 2068 ll 2069 cd /opt/ 2070 ll 2071 cd local/ 2072 ll 2073 cd hadoop-2.7.3/ 2074 ll 2075 cd sbin/ 2076 ll 2077 ./stop-all.sh 2078 ./start-all.sh 2079 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2080 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv / 2081 hadoop fs -ls / 2082 df 2083 hadoop fs -mkdir /scdata 2084 hadoop fs -mkdir /scdata/riskModel 2085 hadoop fs -put /home/scdata/get_bankrupt_com_and_time.csv /scdata/riskModel/ 2086 hadoop fs -put /home/scdata/banckrupt_data.csv /scdata/riskModel/
文章来源: hadoop fs 命令,安全模式退出