azkaban-aplcache

Package hadoop-security-plugin with the executor (#1014) Currently

4/24/2017 10:39:33 PM

Details

diff --git a/azkaban-exec-server/build.gradle b/azkaban-exec-server/build.gradle
index 6c2c40d..63c059e 100644
--- a/azkaban-exec-server/build.gradle
+++ b/azkaban-exec-server/build.gradle
@@ -7,7 +7,8 @@ dependencies {
 
   testCompile(project(path: ':azkaban-common', configuration: 'testCompile'))
   testCompile(project(':azkaban-common').sourceSets.test.output)
-  testCompile('com.google.guava:guava:13.0.1')
+
+  runtime(project(':azkaban-hadoop-security-plugin'))
 }
 
 distributions {
diff --git a/azkaban-hadoop-security-plugin/build.gradle b/azkaban-hadoop-security-plugin/build.gradle
index 44b43e0..3a91289 100644
--- a/azkaban-hadoop-security-plugin/build.gradle
+++ b/azkaban-hadoop-security-plugin/build.gradle
@@ -5,23 +5,8 @@ ext.hadoopVersion = "2.6.1"
 dependencies {
   compile project(":azkaban-common")
 
-  compile "org.apache.hadoop:hadoop-common:$hadoopVersion"
-  compile "org.apache.hadoop:hadoop-mapreduce-client-common:$hadoopVersion"
-  compile "org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion"
-  compile "org.apache.hive:hive-metastore:0.13.1"
-}
-
-/**
- * Just package the jar.
- * Since, rest of the dependencies are just hadoop and hive. They are not packaged inside the plugin.
- * It is assumed that classpaths of hadoop, hive, pig, etc will be externally fed into the application.
- */
-distributions {
-  main {
-    contents {
-      from(jar) {
-        into 'lib'
-      }
-    }
-  }
+  compileOnly "org.apache.hadoop:hadoop-common:$hadoopVersion"
+  compileOnly "org.apache.hadoop:hadoop-mapreduce-client-common:$hadoopVersion"
+  compileOnly "org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion"
+  compileOnly "org.apache.hive:hive-metastore:0.13.1"
 }