blob: 19a7196c54103e099de3a919b5cf78243dd7bb80 [file] [log] [blame]
Ian Maxond8071ee2015-06-24 17:39:05 -07001#!/usr/bin/env bash
Till Westmannea8ab392013-06-05 15:17:08 -07002#/*
3# Copyright 2009-2013 by The Regents of the University of California
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# you may obtain a copy of the License from
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#*/
Ian Maxond8071ee2015-06-24 17:39:05 -070016
ramangrover29116eb972013-02-20 20:47:35 +000017WORKING_DIR=$1
18HADOOP_VERSION=$2
19HDFS_URL=$3
20HDFS_PATH=$4
21export HADOOP_HOME=$WORKING_DIR/hadoop-$HADOOP_VERSION
22echo "$HADOOP_HOME/bin/hadoop fs -rmr $HDFS_URL/$HDFS_PATH"
23$HADOOP_HOME/bin/hadoop fs -rmr $HDFS_URL/$HDFS_PATH