Adding support for MapR-FS client as a maven dependency (#506)

diff --git a/bin/run_tests b/bin/run_tests
index 7b4b2e3..6f1f846 100755
--- a/bin/run_tests
+++ b/bin/run_tests
@@ -9,4 +9,9 @@
 # java -cp conf/:${JDBC_DRIVER_CP}:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar:${HADOOP_INSTALL_LOC}/lib/* org.apache.drill.test.framework.TestDriver $*
 
 # use the following line when testing apache drill JDBC driver
-java -Xss40m -cp conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar:${HADOOP_INSTALL_LOC}/lib/* org.apache.drill.test.framework.TestDriver $*
+if [[ $HADOOP_VERSION == *"mapr"* ]]
+then
+  java -Xss40m -cp conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar -Djava.security.auth.login.config=/opt/mapr/conf/mapr.login.conf -Dzookeeper.sasl.client=false org.apache.drill.test.framework.TestDriver $*
+else
+  java -Xss40m -cp conf/:${DRILL_HOME}/jars/jdbc-driver/drill-jdbc-all-${DRILL_VERSION}.jar:framework/target/framework-1.0.0-SNAPSHOT-shaded.jar org.apache.drill.test.framework.TestDriver $*
+fi
diff --git a/framework/pom.xml b/framework/pom.xml
index e7ce01e..9e2492b 100644
--- a/framework/pom.xml
+++ b/framework/pom.xml
@@ -8,7 +8,7 @@
   <properties>
     <log4j.version>1.2.17</log4j.version>
     <drill.version>${env.DRILL_VERSION}</drill.version>
-    <hadoop.version>2.7.1</hadoop.version>
+    <hadoop.version>${env.HADOOP_VERSION}</hadoop.version>
     <runtimeDepenencies>${env.DRILL_HOME}/conf</runtimeDepenencies>
   </properties>
   <dependencies>
@@ -118,6 +118,18 @@
       <version>2.4.3</version>
     </dependency>
   </dependencies>
+  <repositories>
+    <repository>
+      <id>mapr-releases</id>
+      <url>http://repository.mapr.com/maven/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
   <build>
     <plugins>
       <plugin>
@@ -438,4 +450,4 @@
       </build>
     </profile>
   </profiles>
-</project>
\ No newline at end of file
+</project>
diff --git a/framework/src/main/resources/drillTestConfig b/framework/src/main/resources/drillTestConfig
index 8fab44e..a53c859 100755
--- a/framework/src/main/resources/drillTestConfig
+++ b/framework/src/main/resources/drillTestConfig
@@ -18,9 +18,8 @@
 
 # Hadoop Version (Please specify maven version for Hadoop Project (for groupId=org.apache.hadoop)
 HADOOP_VERSION=version
-
-# Path to where Hadoop binaries are installed
-HADOOP_INSTALL_LOC=/opt/hadoop/hadoop-0.20.2
+# For Apache Hadoop, version=2.7.0
+# For MapR Hadoop, version=2.7.0-mapr-1808
 
 # Path on the distributed system where test data is to be populated (currently cannot be modified - create the directory if it doesn't exist).
 DRILL_TESTDATA=/drill/testdata