Building Spark reports "Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Spark reports "Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global"

Tao Xiao
I downloaded spark-0.9.0-incubating-bin-hadoop1.tgz and extracted it to /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1, then I tried to build it using the command "sbt/sbt assembly", but I got the following errors:

... ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/examples/target/scala-2.10/spark-examples-assembly-0.9.0-incubating.jar ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/scala-2.10/spark-assembly-0.9.0-incubating-hadoop1.0.4.jar ...
[error] Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global
[error] Use 'last' for the full log.


Why would this happen and what is the cause? 
Reply | Threaded
Open this post in threaded view
|

Re: Building Spark reports "Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global"

Nan Zhu
do you have write permission to the directory?

-- 
Nan Zhu

On Wednesday, February 19, 2014 at 10:44 AM, Tao Xiao wrote:

I downloaded spark-0.9.0-incubating-bin-hadoop1.tgz and extracted it to /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1, then I tried to build it using the command "sbt/sbt assembly", but I got the following errors:

... ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/examples/target/scala-2.10/spark-examples-assembly-0.9.0-incubating.jar ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/scala-2.10/spark-assembly-0.9.0-incubating-hadoop1.0.4.jar ...
[error] Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global
[error] Use 'last' for the full log.


Why would this happen and what is the cause? 

Reply | Threaded
Open this post in threaded view
|

Re: Building Spark reports "Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global"

Tao Xiao
Nan,

Actually that directory was located in the directory where spark-0.9.0-incubating-bin-hadoop1.tgz was extracted and was created by the building process.     

Quite weird, I build it with the same command today successfully.



2014-02-19 23:53 GMT+08:00 Nan Zhu <[hidden email]>:
do you have write permission to the directory?

-- 
Nan Zhu

On Wednesday, February 19, 2014 at 10:44 AM, Tao Xiao wrote:

I downloaded spark-0.9.0-incubating-bin-hadoop1.tgz and extracted it to /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1, then I tried to build it using the command "sbt/sbt assembly", but I got the following errors:

... ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/examples/target/scala-2.10/spark-examples-assembly-0.9.0-incubating.jar ...
[info] Packaging /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/scala-2.10/spark-assembly-0.9.0-incubating-hadoop1.0.4.jar ...
[error] Could not create directory /usr/local/ims/spark/spark-0.9.0-incubating-bin-hadoop1/assembly/target/streams/compile/$global/$global
[error] Use 'last' for the full log.


Why would this happen and what is the cause?