目录
hadoop
- 查看启动状态
jps
- 重启hadoop
sbin/stop-all.sh
sbin/start-all.sh
sbin/start-dfs.sh
- 查看hadoop版本
./bin/hadoop version
HDFS
- 查看hdfs的文件夹
cd /usr/local/hadoop
./bin/hdfs dfs -ls /
hive
- 查看创建的数据库
show databases;
- 查看当前数据库的所有表名
show tables;
Spark
- 启动pyspark
/usr/local/sprak/bin/pyspark
标签:bin,sbin,查看,hadoop,命令,sh,Spark
From: https://www.cnblogs.com/Gimm/p/18212571