大数据期末考试复习知识点
Hadoop编程基础
ssh master
bash /scripts/hadoop/start-hadoop.sh
hadoop fs -[命令]
hadoop fs -ls /
hadoop fs -mkdir /newDir
hadoop fs -rm -r /newDir
echo "hello" > hello.txt
hadoop fs -mkdir /newDir
hadoop fs -put hello.txt /newDir
hadoop fs -cat /newDir/hello.txt
hadoop fs -get /newDir/hello.txt hello_get.txt
hadoop fs -du /newDir
hadoop fs -cp /newDir/hello.txt /newDir/hello_cp.txt
hadoop fs -mv /newDir/hello.txt /newDir/hello_mv.txt
hadoop fs -chmod 777 /newDir/hello_mv.txt
hadoop fs -rm /newDir/hello_mv.txt
HBase Shell
ssh master
bash /scripts/hadoop/start-hadoop.sh
hbase shell
create 'student','name','sex','age','dept','course'
list
describle 'student'
put 'student','1606001','name','WangWei'
put 'student','1606001','sex','male'
put 'student','1606001','age','20'
put 'student','1606001','dept','CS'
put 'student','1606001','course:math','80'
get 'student','1606001'
get 'student','1606001','sex'
scan 'student'
delete 'student','1606001','age'
deleteall 'student','1606002'
disable 'student'
drop 'student'
get 'student','1606001',{COLUMN=>'name',VERSIONS=>5}
grant 'bd1_cg','RW','t1'
user_permission 't1'
revoke 'bd1_cg','t1'

