Hi Ted, I downloaded pom.xml to examples directory. It works, thanks!!
Regards Arthur [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Spark Project Parent POM .......................... SUCCESS [2.119s] [INFO] Spark Project Core ................................ SUCCESS [1:27.100s] [INFO] Spark Project Bagel ............................... SUCCESS [10.261s] [INFO] Spark Project GraphX .............................. SUCCESS [31.332s] [INFO] Spark Project ML Library .......................... SUCCESS [35.226s] [INFO] Spark Project Streaming ........................... SUCCESS [39.135s] [INFO] Spark Project Tools ............................... SUCCESS [6.469s] [INFO] Spark Project Catalyst ............................ SUCCESS [36.521s] [INFO] Spark Project SQL ................................. SUCCESS [35.488s] [INFO] Spark Project Hive ................................ SUCCESS [35.296s] [INFO] Spark Project REPL ................................ SUCCESS [18.668s] [INFO] Spark Project YARN Parent POM ..................... SUCCESS [0.583s] [INFO] Spark Project YARN Stable API ..................... SUCCESS [15.989s] [INFO] Spark Project Assembly ............................ SUCCESS [11.497s] [INFO] Spark Project External Twitter .................... SUCCESS [8.777s] [INFO] Spark Project External Kafka ...................... SUCCESS [9.688s] [INFO] Spark Project External Flume ...................... SUCCESS [10.411s] [INFO] Spark Project External ZeroMQ ..................... SUCCESS [9.511s] [INFO] Spark Project External MQTT ....................... SUCCESS [8.451s] [INFO] Spark Project Examples ............................ SUCCESS [1:40.240s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8:33.350s [INFO] Finished at: Fri Aug 29 01:58:00 HKT 2014 [INFO] Final Memory: 82M/1086M [INFO] ------------------------------------------------------------------------ On 29 Aug, 2014, at 1:36 am, Ted Yu <yuzhih...@gmail.com> wrote: > bq. Spark 1.0.2 > > For the above release, you can download pom.xml attached to the JIRA and > place it in examples directory > > I verified that the build against 0.98.4 worked using this command: > > mvn -Dhbase.profile=hadoop2 -Phadoop-2.4,yarn -Dhadoop.version=2.4.1 > -DskipTests clean package > > Patch v5 is @ level 0 - you don't need to use -p1 in the patch command. > > Cheers > > > On Thu, Aug 28, 2014 at 9:50 AM, arthur.hk.c...@gmail.com > <arthur.hk.c...@gmail.com> wrote: > Hi, > > I have just tried to apply the patch of SPARK-1297: > https://issues.apache.org/jira/browse/SPARK-1297 > > There are two files in it, named spark-1297-v2.txt and spark-1297-v4.txt > respectively. > > When applying the 2nd one, I got "Hunk #1 FAILED at 45" > > Can you please advise how to fix it in order to make the compilation of Spark > Project Examples success? > (Here: Hadoop 2.4.1, HBase 0.98.5, Spark 1.0.2) > > Regards > Arthur > > > > patch -p1 -i spark-1297-v4.txt > patching file examples/pom.xml > Hunk #1 FAILED at 45. > Hunk #2 succeeded at 94 (offset -16 lines). > 1 out of 2 hunks FAILED -- saving rejects to file examples/pom.xml.rej > > below is the content of examples/pom.xml.rej: > +++ examples/pom.xml > @@ -45,6 +45,39 @@ > </dependency> > </dependencies> > </profile> > + <profile> > + <id>hbase-hadoop2</id> > + <activation> > + <property> > + <name>hbase.profile</name> > + <value>hadoop2</value> > + </property> > + </activation> > + <properties> > + <protobuf.version>2.5.0</protobuf.version> > + <hbase.version>0.98.4-hadoop2</hbase.version> > + </properties> > + <dependencyManagement> > + <dependencies> > + </dependencies> > + </dependencyManagement> > + </profile> > + <profile> > + <id>hbase-hadoop1</id> > + <activation> > + <property> > + <name>!hbase.profile</name> > + </property> > + </activation> > + <properties> > + <hbase.version>0.98.4-hadoop1</hbase.version> > + </properties> > + <dependencyManagement> > + <dependencies> > + </dependencies> > + </dependencyManagement> > + </profile> > + > </profiles> > > <dependencies> > > > This caused the related compilation failed: > [INFO] Spark Project Examples ............................ FAILURE [0.102s] > > >