hortonworks-gallery / iot-truck-streaming

Apache License 2.0
25 stars 44 forks source link

POM for poc.hortonworks.domain:transport-domain:jar:1.0.0-SNAPSHOT is missing #7

Closed nickcdryan closed 8 years ago

nickcdryan commented 8 years ago

Looks like a really great tutorial, but I'm having trouble getting everything off the ground. I realize this isn't Q&A but saw that you've just updated the repo two days ago so thought my issue is possibly related to the update...

I should mention that the install_maven.sh script wasn't working, so I had to do it by hand in order to get the maven directory into the right place - I'm using Sandbox in Azure and guessing something to do with the wrong base directory. Also grabbed the latest version of Maven :)

My real issue is that the POM for poc.hortonworks.domain:transport-domain:jar:1.0.0-SNAPSHOT is missing.

Running "/usr/maven/bin/mvn clean package -DskipTests" worked fine, then timed out and now gives:

[nickcdryan@sandbox storm-streaming]$ /usr/maven/bin/mvn clean package -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-streaming 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for poc.hortonworks.domain:transport-domain:jar:1.0.0-SNAPSHOT is missing, no dependency information availabl e
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.380 s
[INFO] Finished at: 2016-09-26T05:39:32+00:00
[INFO] Final Memory: 24M/377M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project storm-streaming: Could not resolve dependencies for project com.hortonworks:storm-str eaming:jar:1.0-SNAPSHOT: Failure to find poc.hortonworks.domain:transport-domain:jar:1.0.0-SNAPSHOT in http://clojars.org/repo was cached in the local repository, resolution will not be reattempted until the update interval of clojars.org has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Failure occurs at: Downloading: http://nexus-private.hortonworks.com/nexus/content/groups/public/poc/hortonworks/domain/transport-domain/1.0.0-SNA PSHOT/transport-domain-1.0.0-SNAPSHOT.jar

A forum suggested a -U flag but no luck. Any idea?

Thanks

abajwa-hw commented 8 years ago

Hi Couple of things to check:

  1. Make sure you are using HDP 2.4 (the project has not been updated for 2.5 yet)
  2. Here are the versions of Maven and Java I was able to get it to work with:
# mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /root/maven
Java version: 1.8.0_102, vendor: Oracle Corporation
  1. You may want to consider deploying the demo on Ambari installed HDP setup (instead of sandbox). Here is some automation for the same: https://community.hortonworks.com/articles/58330/automation-to-deploy-hdp-25nifi-10-clusters-runnin.html
nickcdryan commented 8 years ago

Thanks!

I ended up playing around with it for a few more hours and got it working. Deleting the newest maven (3.9.9) and using 3.2.5 did the trick.

dirttech commented 7 years ago

@nickcdryan I am using maven 3.2.5 on HDP 2.5 and getting this error - [INFO] ------------------------------------------------------------------------ [INFO] Building storm-streaming 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ storm-streaming --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ storm-streaming --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 18 source files to /root/iot-truck-streaming/storm-streaming/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /root/iot-truck-streaming/storm-streaming/src/main/java/com/hortonworks/streaming/impl/bolts/Prediction.java:[3,28] package backtype.storm.tuple does not exist [ERROR] /root/iot-truck-streaming/storm-streaming/src/main/java/com/hortonworks/streaming/impl/bolts/Prediction.java:[9,11] cannot find symbol symbol: class Tuple @abajwa-hw Is it supported on HDP 2.5 now?