You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Tao Xiao <xi...@gmail.com> on 2014/02/19 16:44:49 UTC

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

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?

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"

Posted by Tao Xiao <xi...@gmail.com>.
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 <zh...@gmail.com>:

>  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?
>
>
>

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"

Posted by Nan Zhu <zh...@gmail.com>.
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?