Skip to content
Browse files

Update pom for hadoop2, update start/stop scripts, and update README

  • Loading branch information...
1 parent 03c3364 commit 54891cd11acb7f3a07c3bba10c0584c05c718ad5 Brock Noland committed
Showing with 16 additions and 14 deletions.
  1. +0 −14 start-secure-test.sh
  2. +16 −0 stop-nfs-server.sh
View
14 start-secure-test.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-MAVEN_REPO="/home/noland/.m2/repository"
-CLASSPATH="target/classes/:target/test-classes/:$(hadoop classpath)"
-CLASSPATH="${CLASSPATH}:${MAVEN_REPO}/com/google/guava/guava/r09/guava-r09.jar"
-if [[ $1 == "server" ]]
-then
- java -cp $CLASSPATH com.cloudera.hadoop.hdfs.nfs.nfs4.NFS4Server 2049
-elif [[ $1 == "client" ]]
-then
- java -cp $CLASSPATH com.cloudera.hadoop.hdfs.nfs.security.SecureClient
-else
- echo "WTF $1"
- echo 1
-fi
View
16 stop-nfs-server.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+cd target
+if [[ -f nfsserver.pid ]]
+then
+ pid=`<nfsserver.pid`
+ if kill -0 $pid 2>/dev/null
+ then
+ kill $pid
+ fi
+ sleep 2
+ if kill -0 $pid 2>/dev/null
+ then
+ kill -9 $pid
+ fi
+fi

0 comments on commit 54891cd

Please sign in to comment.
Something went wrong with that request. Please try again.