You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Rose Beck <ro...@gmail.com> on 2015/08/13 05:08:19 UTC

tdbloader2 -- no space left on device

I tried to load RDF data using tdbloader2 using the following command:

./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq

However, after sometime I ended up getting the following message:
INFO  Total: 668,867,024 tuples : 206,322.84 seconds : 3,241.85
tuples/sec [2015/08/13 02:38:12 IST]
 02:38:14 Index phase
 02:38:14 Index GSPO
sort: write failed: /tmp/sort4XJ307: No space left on device


Can someone please suggest as to how can I change the location of
/tmp/ so that tdbloader takes a different location on disk which has
space. I tried:

./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq --T=/home/mnt/tmp
but I ended up getting the following message:
File does not exist: --T



-- 
With Warm Regards,
Rose

Re: tdbloader2 -- no space left on device

Posted by Andy Seaborne <an...@apache.org>.
On 13/08/15 04:08, Rose Beck wrote:
> I tried to load RDF data using tdbloader2 using the following command:
>
> ./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq
>
> However, after sometime I ended up getting the following message:
> INFO  Total: 668,867,024 tuples : 206,322.84 seconds : 3,241.85
> tuples/sec [2015/08/13 02:38:12 IST]
>   02:38:14 Index phase
>   02:38:14 Index GSPO
> sort: write failed: /tmp/sort4XJ307: No space left on device

That isn't the output of tdbloader.  That's tdbloader2.

Which version?  Does not look like 3.0.0.
There is a significantly upgraded tdbloader2 in Jena 3.0.0


> Can someone please suggest as to how can I change the location of
> /tmp/ so that tdbloader takes a different location on disk which has
> space. I tried:
>

Set environment TMPDIR or set sort(1) arguments. See "man sort" and set
environment variable SORT_ARGS to control sort(1) in tdbloader2.

> ./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq --T=/home/mnt/tmp
> but I ended up getting the following message:
> File does not exist: --T

That is after /home/myfile.nq; argument come first, first file name 
starts the filename list.  It gets confused after that.

	Andy


Re: tdbloader2 -- no space left on device

Posted by Rob Vesse <rv...@dotnetrdf.org>.
I assume this is tdbloader2 even though your command examples use
tdbloader?

It depends on whether you are using Jena 3.0.0 or Jena 2.x

For 3.0.0

tdbloader2 --help is your friend:

  -s <SortArgs>
  --sort-args <SortArgs>
    Sets the arguments that should be passed to sort for the sort
    based portions of the build.

    Generally it is best not to change these as the scripts will
    use appropriate defaults for your system.


So:

  ./tdbloader2 --loc=/home/JenaDatabase --sort-args "-T /home/mnt/tmp"
/home/myfile.nq

For Jena 2.x there is no equivalent option and you need to specify via an
environment variable instead:

  export SORT_ARGS="-T /home/mnt/tmp"
  ./tdbloader2 --loc=/home/JenaDatabase /home/myfile.nq

Rob


On 13/08/2015 04:08, "Rose Beck" <ro...@gmail.com> wrote:

>I tried to load RDF data using tdbloader2 using the following command:
>
>./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq
>
>However, after sometime I ended up getting the following message:
>INFO  Total: 668,867,024 tuples : 206,322.84 seconds : 3,241.85
>tuples/sec [2015/08/13 02:38:12 IST]
> 02:38:14 Index phase
> 02:38:14 Index GSPO
>sort: write failed: /tmp/sort4XJ307: No space left on device
>
>
>Can someone please suggest as to how can I change the location of
>/tmp/ so that tdbloader takes a different location on disk which has
>space. I tried:
>
>./tdbloader --loc=/home/JenaDatabase -v /home/myfile.nq --T=/home/mnt/tmp
>but I ended up getting the following message:
>File does not exist: --T
>
>
>
>-- 
>With Warm Regards,
>Rose