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

Cynthia L Wong commented on OODT-781:
-------------------------------------

2015-10-26: reported

Here is a segment of filemgr.properties deployed by RADIX. I modified slightly 
for
my project. I also verified that FILEMGR_HOME contains valid path. The odd
is that I can ingest but I can’t delete. If there is problem with
FILEMGR_HOME, then ingest should break too.

I originally could not check for the ingested product (-product -pn)
either due to multiple records in the catalog for the same product. I
cleaned up the catalog and ingested only one record but I still can’t
delete the product.

Here is the segment of filemgr.properties. I noticed that lines contain
“file:[FILEMGR_HOME]” rather than “file://[FILEMGR_HOME]".

# lucene catalog configuration
org.apache.oodt.cas.filemgr.catalog.lucene.idxPath=[OODT_HOME]/data/catalog
org.apache.oodt.cas.filemgr.catalog.lucene.pageSize=20
org.apache.oodt.cas.filemgr.catalog.lucene.commitLockTimeout.seconds=60
org.apache.oodt.cas.filemgr.catalog.lucene.writeLockTimeout.seconds=60
org.apache.oodt.cas.filemgr.catalog.lucene.mergeFactor=20

# XML repository manager configuration
org.apache.oodt.cas.filemgr.repositorymgr.dirs=file:[FILEMGR_HOME]/policy/o
odt,file:[FILEMGR_HOME]/policy/gnss-h2o

# XML validation layer configuration
org.apache.oodt.cas.filemgr.validation.dirs=file:[FILEMGR_HOME]/policy/oodt
,file:[FILEMGR_HOME]/policy/gnss-h2o

# remote data transfer configuration
org.apache.oodt.cas.filemgr.datatransfer.remote.chunkSize=1024

# location of Mime-Type repository
org.apache.oodt.cas.filemgr.mime.type.repository=[FILEMGR_HOME]/etc/mime-ty
pes.xml



I changed those lines to have “file://[FILEMGR_HOME]"


# XML repository manager configuration
org.apache.oodt.cas.filemgr.repositorymgr.dirs=file://[FILEMGR_HOME]/policy
/oodt,file://[FILEMGR_HOME]/policy/gnss-h2o

# XML validation layer configuration
org.apache.oodt.cas.filemgr.validation.dirs=file://[FILEMGR_HOME]/policy/oo
dt,file://[FILEMGR_HOME]/policy/gnss-h2o

% ./filemgr-client -url http://localhost:9000 -op -dbyid -pid 
ca00685a-79d4-11e5-9cae-33480ce63ace
ERROR: Failed to delete product
'org.apache.oodt.cas.filemgr.structs.Product@3d52315f' :
java.lang.Exception: java.lang.IllegalArgumentException: URI is not
absolute

But, the result is same. Then, I replaced all FILEMGR_HOME in
filemgr.properties with valid paths. Same result…

FYI. My ingest command is as below:

% ./filemgr-client -url http://localhost:9000 -op -ingest -ptn rinex -ps
Flat -mf
"file:///project/amigho/deploy/gnss-h2o/pcs/data/staging/p1012850.15S.met"
-rs "file:///project/amigho/deploy/gnss-h2o/pcs/data/staging/p1012850.15S"
-pn p1012850.15S

However, I found in lucene the <reference_data_store> contains an illegal
path. I’m not sure if that causes the problem for deletion. But, I see
this in other catalog (i.e. SMAP) too but it can be deleted.

<reference_data_store:file:/project/amigho/deploy/gnss-h2o/pcs/data/archive/RINEX/2015/285/p1012850.15S>

BTW, RADIX does not deploy filemgr/etc/logging.properties.

> IllegalArgumentException: RADiX filemgr-client script cannot delete product 
> by id or name
> -----------------------------------------------------------------------------------------
>
>                 Key: OODT-781
>                 URL: https://issues.apache.org/jira/browse/OODT-781
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.7
>         Environment: Mac OS X 10.9.2
> java version "1.7.0_51"
> Apache Maven 2.2.1
>            Reporter: Mengying Wang
>            Priority: Minor
>             Fix For: 0.10
>
>
> I am trying to delete some product in the OODT File Manager using the product 
> id or name. However, the system raises "java.lang.IllegalArgumentException: 
> URI is not absolute" error. 
> Below are my commands: 
> ./filemgr-client --op --dbyid --productId 
> 2b0e7582-6077-11e4-ac24-8d456d2e5b9b --url http://localhost:9000
> ./filemgr-client -op --deleteProductByName --productName test.txt --url 
> http://localhost:9000
> Part of the file manager logs is shown here: 
> ......
> Oct 30, 2014 2:56:21 PM 
> org.springframework.beans.factory.support.AbstractBeanFactory doGetBean
> FINE: Returning cached instance of singleton bean 'sqlQuery'
> Oct 30, 2014 2:56:21 PM 
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init>
> INFO: Loading File Manager Configuration Properties from: 
> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.properties]
> Oct 30, 2014 2:56:21 PM 
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init>
> INFO: Loading File Manager Configuration Properties from: 
> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.properties]
> ERROR: Failed to delete product 
> 'org.apache.oodt.cas.filemgr.structs.Product@5433d17' : java.lang.Exception: 
> java.lang.IllegalArgumentException: URI is not absolute



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

Reply via email to