I applied the patch on master branch without rejects.

If you use spark 1.0.2, use pom.xml attached to the JIRA.

On Sun, Sep 14, 2014 at 8:38 AM, arthur.hk.c...@gmail.com <
arthur.hk.c...@gmail.com> wrote:

> Hi,
>
> Thanks!
>
> patch -p0 -i spark-1297-v5.txt
> patching file docs/building-with-maven.md
> patching file examples/pom.xml
> Hunk #1 FAILED at 45.
> Hunk #2 FAILED at 110.
> 2 out of 2 hunks FAILED -- saving rejects to file examples/pom.xml.rej
>
> Still got errors.
>
> Regards
> Arthur
>
> On 14 Sep, 2014, at 11:33 pm, Ted Yu <yuzhih...@gmail.com> wrote:
>
> spark-1297-v5.txt is level 0 patch
>
> Please use spark-1297-v5.txt
>
> Cheers
>
> On Sun, Sep 14, 2014 at 8:06 AM, arthur.hk.c...@gmail.com <
> arthur.hk.c...@gmail.com> wrote:
>
>> Hi,
>>
>> Thanks!!
>>
>> I tried to apply the patches, both spark-1297-v2.txt and spark-1297-v4.txt
>> are good here,  but not spark-1297-v5.txt:
>>
>>
>> $ patch -p1 -i spark-1297-v4.txt
>> patching file examples/pom.xml
>>
>> $ patch -p1 -i spark-1297-v5.txt
>> can't find file to patch at input line 5
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |diff --git docs/building-with-maven.md docs/building-with-maven.md
>> |index 672d0ef..f8bcd2b 100644
>> |--- docs/building-with-maven.md
>> |+++ docs/building-with-maven.md
>> --------------------------
>> File to patch:
>>
>>
>>
>>
>>
>>
>> Please advise.
>> Regards
>> Arthur
>>
>>
>>
>> On 14 Sep, 2014, at 10:48 pm, Ted Yu <yuzhih...@gmail.com> wrote:
>>
>> Spark examples builds against hbase 0.94 by default.
>>
>> If you want to run against 0.98, see:
>> SPARK-1297 https://issues.apache.org/jira/browse/SPARK-1297
>>
>> Cheers
>>
>> On Sun, Sep 14, 2014 at 7:36 AM, arthur.hk.c...@gmail.com <
>> arthur.hk.c...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have tried to to run *HBaseTest.scala, *but I  got following errors,
>>> any ideas to how to fix them?
>>>
>>> Q1)
>>> scala> package org.apache.spark.examples
>>> <console>:1: error: illegal start of definition
>>>        package org.apache.spark.examples
>>>
>>>
>>> Q2)
>>> scala> import org.apache.hadoop.hbase.mapreduce.TableInputFormat
>>> <console>:31: error: object hbase is not a member of package
>>> org.apache.hadoop
>>>        import org.apache.hadoop.hbase.mapreduce.TableInputFormat
>>>
>>>
>>>
>>> Regards
>>> Arthur
>>>
>>
>>
>>
>>
>
>

Reply via email to