Back-end Developer

[Bigdata]hdfs dfs-put ShellScript

#!/bin/sh date=$(date +%Y-%m-%d -d '-1days') echo $date scp -r ./weather/$date root@192.168.56.201:/root/weather/ rm -rf ./weather/$date exit 0 #!/bin/sh date=$(date +%Y-%m-%d -d '-1days') hdfs dfs -put ./weather/$date /weather rm -rf ./weather/$date exit 0