[INFO] Spark Project External Flume ....................... SUCCESS [ 8.670 s]
[INFO] Spark Project External Flume Assembly .............. SUCCESS [ 3.832 s]
[INFO] Spark Project External MQTT ........................ FAILURE [ 11.449 s]
[INFO] Spark Project External MQTT Assembly ............... SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[ERROR] Failed to execute goal on project spark-streaming-mqtt_2.10:
Could not resolve dependencies for project org.apache.spark:spark-streaming-mqtt_2.10:jar:1.6.0:
Failure to find org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:1.0.1 in http://repo2.maven.org/maven2/ was cached in the local repository,
resolution will not be reattempted until the update interval of repo2 has elapsed or updates are forced -> [Help 1]
oschina的maven源也配置了
由于 https://repo.eclipse.org/content/repositories/paho-releases
不能访问,org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:1.0.1
中央库没有,换成1.0.2试试:
vim /data0/software/*spark-1.6.2/external/mqtt/pom.xml*
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>**1.0.2**</version>
</dependency>
https://issues.apache.org/jira/browse/SPARK-1378
最后是自己下了那个jar放到~/.m2里才搞定