Hadoop Single Node Cluster Unit test

Added files for unit test. And added Hbase service dependancies in blueprint
yes I tried by downloading hive test.sql from repo, then thought that it is good enough to create hive test.sql in local itself (since there is only 5 queries to run). So I commented "curl” code line for hivtest.sql. It is not needed to download from repo.
 
On 25-Jun-2014, at 10:02 pm, Steve Morin <notifications@github.com> wrote:

> In test/unittest.sh:
> 
> > +
> > +sudo -u hdfs hdfs dfs -rm -r -skipTrash /tmp/input || echo "/tmp/input not found"
> > +sudo -u hdfs hdfs dfs -rm -r -skipTrash /tmp/output || echo "/tmp/output not found"
> > +sudo -u hdfs hdfs dfs -put /tmp/input /tmp/input && result+=('1. [PASS] - HDFS') || (result+=('1. [FAIL] - HDFS');EXIT_VALUE=1;)
> > +
> > +echo "2. MAPREDUCE"
> > +
> > +if [ "$R_MANAGER" == "true" ] && [ "$N_MANAGER" == "true" ] ; then
> > +        sudo -u hdfs hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount /tmp/input /tmp/output && result+=('2. [PASS] - MAP_REDUCE') || result+=('2. [FAIL] - MAP_REDUCE')
> > +else
> > +        result+=('2. [FAIL] - MAP_REDUCE');
> > +        EXIT_VALUE=1;
> > +fi
> > +
> > +echo "3. HIVE"
> > +#curl -s https://raw.githubusercontent.com/DemandCube/hadoop-single-node-cluster/master/test/hivetest.sql > hivetest.sql
> Since the repo is already downloaded, reference this file from the local files. Is there another reason todo this that I am missing?
> 
> —
> Reply to this email directly or view it on GitHub.
>