#!/bin/bash
HADOOP=$(which hadoop)
$HADOOP fs -test -e $1
if [ $? -eq 1 ]
then
$HADOOP fs -put $1 /
if [ $? -eq 0 ]
then
echo "the file $1 put successfully!"
fi
fi

相关文章:

  • 2021-11-18
  • 2022-02-26
  • 2021-11-19
  • 2021-05-21
  • 2022-01-04
  • 2021-12-22
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案