I tried using java -Dhttp.proxyHost=<host> -Dhttp.proxyPort=<post> -classpath lib/*:config/_common:config/broker io.druid.cli.Main server broker command but druid is still not able to download the missing artifacts.
If this is not the case, then what are the workarounds ? use of pull-deps to pull the dependencies and re-bundle druid will solve the issue ?
Any suggestions on this would be the great help.
Thanks,
Jvalant
Hello,
I am using druid 0.8.3 with the core extensions ( kafka-eight and mysql-metadata-storage ). I have deployed druid on the machine which doesn't have direct connection to remote repositories ( upstream proxy). Sometimes, druid tries to install maven dependencies and fails to start.
From the different blog posts and druid docs, it seems that druid tar contains all the required jars that druid and its core extensions need. But, in this case it tries to download jars and fails.
My question is regarding the possibility of using proxy to download jars. Is there any possibility that applying proxy setting to start command would let druid download required jars?
I tried using java -Dhttp.proxyHost=<host> -Dhttp .proxyPort=<post> -classpath lib/*:config/_common:config/ broker io.druid.cli.Main server broker command but druid is still not able to download the missing artifacts.
If this is not the case, then what are the workarounds ? use of pull-deps to pull the dependencies and re-bundle druid will solve the issue ?
Any suggestions on this would be the great help.
Thanks,
Jvalantsample exception:
INFO: HV000001: Hibernate Validator 5.1.3.Final
2016-09-17T03:33:39,994 INFO [main] io.druid.guice. JsonConfigurator - Loaded class[class io.druid.guice. ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{ searchCurrentClassloader=true, coordinates=[io.druid. extensions:druid-kafka-eight, io.druid.extensions:mysql-metadata-storage], defaultVersion='0.8.3', localRepository='extensions- repo', remoteRepositories=[]}]2016-09-17T03:33:40,770 INFO [main] io.druid.initialization. Initialization - Loading extension[io.druid.extensions: druid-kafka-eight] for class[io.druid.cli. CliCommandCreator]2016-09-17T03:33:58,644 ERROR [main] io.druid.initialization. Initialization - Unable to resolve artifacts for [io.druid.extensions:druid- kafka-eight:jar:0.8.3 (runtime) -> [] < []].org.eclipse.aether.resolution. DependencyResolutionException: Failed to collect dependencies at io.druid.extensions:druid- kafka-eight:jar:0.8.3 -> org.apache.kafka:kafka_2.10: jar:0.8.2.1 -> org.apache.zookeeper: zookeeper:jar:3.4.6 -> jline:jline:jar:0.9.94 -> junit:junit
:jar:4.11 -> org.hamcrest:hamcrest-core: jar:1.3
at org.eclipse.aether.internal. impl.DefaultRepositorySystem. resolveDependencies( DefaultRepositorySystem.java: 380) ~[aether-impl-0.9.0.M2.jar:?]
at io.tesla.aether.internal. DefaultTeslaAether. resolveArtifacts( DefaultTeslaAether.java:289) ~[tesla-aether-0.0.5.jar:0.0. 5]at io.druid.initialization. Initialization. getClassLoaderForCoordinates( Initialization.java:254) [druid-server-0.8.3.jar:0.8.3]at io.druid.initialization. Initialization. getFromExtensions( Initialization.java:154) [druid-server-0.8.3.jar:0.8.3]at io.druid.cli.Main.main(Main. java:84) [druid-services-0.8.3.jar:0.8. 3]
Caused by: org.eclipse.aether.collection. DependencyCollectionException: Failed to collect dependencies at io.druid.extensions:druid- kafka-eight:jar:0.8.3 -> org.apache.kafka:kafka_2.10: jar:0.8.2.1 -> org.apache.zookeeper: zookeeper:jar:3.4.6 -> jline:jline:jar:0.9.94 ->
junit:junit:jar:4.11 -> org.hamcrest:hamcrest-core: jar:1.3
at org.eclipse.aether.internal. impl. DefaultDependencyCollector. collectDependencies( DefaultDependencyCollector. java:292) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultRepositorySystem. resolveDependencies( DefaultRepositorySystem.java: 342) ~[aether-impl-0.9.0.M2.jar:?]... 4 moreCaused by: org.eclipse.aether.resolution. ArtifactDescriptorException: Failed to read artifact descriptor for org.hamcrest:hamcrest-core: jar:1.3
at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.loadPom( DefaultArtifactDescriptorReade r.java:335) ~[maven-aether-provider-3.1.1. jar:3.1.1]at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.readArtifactDescriptor( DefaultArtifactDescriptorReade r.java:217) ~[maven-aether-provider-3.1.1. jar:3.1.1]
at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:461) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. collectDependencies( DefaultDependencyCollector. java:261) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultRepositorySystem. resolveDependencies( DefaultRepositorySystem.java: 342) ~[aether-impl-0.9.0.M2.jar:?]... 4 moreCaused by: org.eclipse.aether.resolution. ArtifactResolutionException: Could not transfer artifact org.hamcrest:hamcrest-core: pom:1.3 from/to central (http://repo.maven.apache.org/ maven2): /usr/local/druid/extensions- repo/org/hamcrest/hamcrest- core/1.3/aether-64c62218-8c31-4b93-9fa5-da92c1dc099b- hamcrest-core-1.3.pom-in- progress (No such file or directory)at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolve( DefaultArtifactResolver.java: 459) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolveArtifacts( DefaultArtifactResolver.java: 262) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolveArtifact( DefaultArtifactResolver.java: 239) ~[aether-impl-0.9.0.M2.jar:?]
at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.loadPom( DefaultArtifactDescriptorReade r.java:320) ~[maven-aether-provider-3.1.1. jar:3.1.1]at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.readArtifactDescriptor( DefaultArtifactDescriptorReade r.java:217) ~[maven-aether-provider-3.1.1. jar:3.1.1]
at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:461) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. collectDependencies( DefaultDependencyCollector. java:261) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultRepositorySystem. resolveDependencies( DefaultRepositorySystem.java: 342) ~[aether-impl-0.9.0.M2.jar:?]... 4 moreCaused by: org.eclipse.aether.transfer. ArtifactTransferException: Could not transfer artifact org.hamcrest:hamcrest-core: pom:1.3 from/to central (http://repo.maven.apache.org/ maven2): /usr/local/druid/extensions- repo/org/hamcrest/hamcrest- core/1.3/aether-64c62218-8c31- 4b93-9fa5-da92c1dc099b- hamcrest-core-1.3.pom-in- progress (No such file or directory)at io.tesla.aether.connector. AetherRepositoryConnector$2. wrap( AetherRepositoryConnector. java:830) ~[aether-connector-okhttp-0.0. 9.jar:0.0.9]at io.tesla.aether.connector. AetherRepositoryConnector$2. wrap( AetherRepositoryConnector. java:824) ~[aether-connector-okhttp-0.0. 9.jar:0.0.9]at io.tesla.aether.connector. AetherRepositoryConnector$ GetTask.flush( AetherRepositoryConnector. java:619) ~[aether-connector-okhttp-0.0. 9.jar:0.0.9]at io.tesla.aether.connector. AetherRepositoryConnector.get( AetherRepositoryConnector. java:238) ~[aether-connector-okhttp-0.0. 9.jar:0.0.9]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. performDownloads( DefaultArtifactResolver.java: 535) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolve( DefaultArtifactResolver.java: 436) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolveArtifacts( DefaultArtifactResolver.java: 262) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl.DefaultArtifactResolver. resolveArtifact( DefaultArtifactResolver.java: 239) ~[aether-impl-0.9.0.M2.jar:?]
at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.loadPom( DefaultArtifactDescriptorReade r.java:320) ~[maven-aether-provider-3.1.1. jar:3.1.1]at org.apache.maven.repository. internal. DefaultArtifactDescriptorReade r.readArtifactDescriptor( DefaultArtifactDescriptorReade r.java:217) ~[maven-aether-provider-3.1.1. jar:3.1.1]
at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:461) ~[aether-impl-0.9.0.M2.jar:?]at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573) ~[aether-impl-0.9.0.M2.jar:?]
at org.eclipse.aether.internal. impl. DefaultDependencyCollector. process( DefaultDependencyCollector. java:573)
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/f5832981-9a7f-4797-9484-00cf4b6ea0e6%40googlegroups.com.
Hey Jvalant,This is all much simpler in 0.9.x, so I recommend upgrading to that if possible. But if you are stuck on 0.8.x, you can download extension dependencies with a command like:java \-cp "lib/*" \-Ddruid.extensions.coordinates='["io.druid.extensions:druid-hdfs-storage","io.druid.extensions:postgresql-metadata-storage"]' \-Ddruid.extensions.localRepository="extensions-repo" \io.druid.cli.Main tools pull-depsAnd then set druid.extensions.localRepository to your extensions-repo in common.runtime.properties.
Gian
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/1352da9b-4456-4c2d-9802-bf7f8195fb0b%40googlegroups.com.