[ 
https://issues.apache.org/jira/browse/JENA-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14650578#comment-14650578
 ] 

Rob Vesse edited comment on JENA-1003 at 8/3/15 9:08 AM:
---------------------------------------------------------

Tracing through the tdbloader2index shell script I found that the statement

{noformat}
SORT_DRIVE_INFO=($(getDriveInfo "${SORT_TEMP_DIR}"))
{noformat}

is invoked with an empty {{SORT_TEMP_DIR}}

The {{SORT_TEMP_DIR}} will assume {{$TMPDIR}} if sort arguments are not present.

A workaround would be to set {{TMPDIR=/tmp}} (or similar), as in:

{noformat}
TMPDIR=/tmp bin/tdbloader2 --loc=db file.nq
{noformat}


was (Author: abargnesi):
Tracing through the tdbloader2index shell script I found that the statement

SORT_DRIVE_INFO=($(getDriveInfo "${SORT_TEMP_DIR}"))

is invoked with an empty SORT_TEMP_DIR.

The SORT_TEMP_DIR will assume $TMPDIR if sort arguments are not present.

A workaround would be to set TMPDIR=/tmp (or similar), as in:

TMPDIR=/tmp bin/tdbloader2 --loc=db file.nq

> tdbloader2 reports df: `': No such file or directory
> ----------------------------------------------------
>
>                 Key: JENA-1003
>                 URL: https://issues.apache.org/jira/browse/JENA-1003
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Cmd line tools
>    Affects Versions: Jena 3.0.0
>         Environment: CentOS release 6.3 (Final)
> java -version
> openjdk version "1.8.0_25"
> OpenJDK Runtime Environment (build 1.8.0_25-b17)
> OpenJDK 64-Bit Server VM (build 25.20-b23, mixed mode)
>            Reporter: Donald Pellegrino
>            Assignee: Rob Vesse
>            Priority: Minor
>             Fix For: Jena 3.0.1
>
>
> A tdbloader2 run seems to throw some errors from the df command:
> {noformat}
> ] tdbloader2 --loc pubchemdb 
> /home/irkmoo/pubchem/RDF/compound/general/pc_compound_type.ttl.gz
>  15:37:51 INFO -- TDB Bulk Loader Start
>  15:37:51 INFO Data Load Phase
>  15:37:51 INFO Got 1 data files to load
>  15:37:51 INFO Data file 1: 
> /home/irkmoo/pubchem/RDF/compound/general/pc_compound_type.ttl.gz
> INFO  Load: /home/irkmoo/pubchem/RDF/compound/general/pc_compound_type.ttl.gz 
> -- 2015/07/30 15:37:52 EDT
> INFO  Add: 50,000 Data (Batch: 23,969 / Avg: 23,969)
> INFO  Total: 76,778 tuples : 3.75 seconds : 20,452.32 tuples/sec [2015/07/30 
> 15:37:56 EDT]
>  15:37:56 INFO Data Load Phase Completed
>  15:37:56 INFO Index Building Phase
> df: `': No such file or directory
> df: no file systems processed
>  15:37:56 ERROR Failed to get drive information for
>  15:37:56 ERROR Failed during data phase
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to