compiling shark-0.8 from source code

116 views
Skip to first unread message

moji...@gmail.com

unread,
Aug 8, 2013, 6:50:40 AM8/8/13
to spark-de...@googlegroups.com
Hi,
    i try to compile the shark-0.8 source code, and i follow the instructions

    but it failed. the error log is:
    xxx/shark/memstore2/buffer/UnsafeDirectByteBufferReader.scala:39: too many arguments for method copyMemory: (x$1: Long, x$2: Long, x$3: Long)Unit
[error]     Unsafe.unsafe.copyMemory(null, _offset, dst, Unsafe.BYTE_ARRAY_BASE_OFFSET, length)
     ...  ... 

    Does anyone has any idea? 

Patrick Wendell

unread,
Aug 8, 2013, 11:37:57 AM8/8/13
to spark-de...@googlegroups.com

Which jdk are you using to compile? You might need a newer version.

---
sent from my phone

--
You received this message because you are subscribed to the Google Groups "Spark Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spark-develope...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

moji...@gmail.com

unread,
Aug 8, 2013, 9:40:03 PM8/8/13
to spark-de...@googlegroups.com
Hi Patrick
    the jdk of my system is java-6-openjdk-amd64, but i install the jdk1.7.0_25 from oracle and
    set the java_home that point to jdk1.7.0_25, but the problem is still here

moji...@gmail.com

unread,
Aug 8, 2013, 9:56:18 PM8/8/13
to spark-de...@googlegroups.com
which jdk version should i use? And i also found that it did not work by setting the variable java_home, how i make it work? 


On Thursday, August 8, 2013 6:50:40 PM UTC+8, moji...@gmail.com wrote:

Reynold Xin

unread,
Aug 8, 2013, 10:01:31 PM8/8/13
to spark-de...@googlegroups.com
How did you set JAVA_HOME?

--
Reynold Xin, AMPLab, UC Berkeley



--

moji...@gmail.com

unread,
Aug 8, 2013, 10:11:53 PM8/8/13
to spark-de...@googlegroups.com
in the configuration file shark-env.sh  and add:
export JAVA_HOME="xxxxx"


On Thursday, August 8, 2013 6:50:40 PM UTC+8, moji...@gmail.com wrote:

Reynold Xin

unread,
Aug 8, 2013, 11:52:57 PM8/8/13
to spark-de...@googlegroups.com
Can you try add to the beginning of sbt/sbt file the following lines, and see what gets printed?

echo $JAVA_HOME
java -version


--
Reply all
Reply to author
Forward
0 new messages