You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oodt.apache.org by Tom Barber <to...@meteorite.bi> on 2014/03/22 23:15:27 UTC

Filemgr Operations

Another random question,

So you use the Ingester class to check hasProduct and ingest 
files....... how do you remove stuff from filemgr?

Just a thought :)
-- 
*Tom Barber* | Technical Director

meteorite bi
*T:* +44 20 8133 3730
*W:* www.meteorite.bi | *Skype:* meteorite.consulting
*A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG, UK

Re: Filemgr Operations

Posted by Thomas Bennett <lm...@gmail.com>.
Hey Tom,

Cool. The filemgr client is quiet extensive and somewhat intimidating when
you first run a --help!

Here's a brief overview of its mechanics from my experience. The filemgr
client command line is broken down by options and sub-options.

The options that I mostly use are: --operation --url --clientTransfer

For example, this is how I invoke an in place file ingest:

filemgr-client \
*--url* http://localhost:9101 \
*--clientTransfer* --dataTransfer
org.apache.oodt.cas.filemgr.datatransfer.InPlaceDataTransferFactory \
*--operation* --ingestProduct --productName $PROD_NAME --productStructure
Flat --productTypeName KatFile --metadataFile file://$PROD_MET --refs
file://$PROD_REF

I've generally found the best way is to poke around by invoking bits of the
command and the client gives some feedback as to the minimum you need to
complete your command.

So, by running on the command line:

$ filemgr-client --url http://localhost:9101 *--operation*
ERROR: Must specify a subOption for group option

$ filemgr-client --url http://localhost:9101 --operation
*--deleteProductByName*
ERROR: Missing required options:
 - [longOption='productName',shortOption='pn',description='Product name']

$ filemgr-client --url http://localhost:9101 --operation
--deleteProductByName *--productName $PROD_NAME*

I can finally delete that  product :)

Cheers,
Tom


On 23 March 2014 22:16, Tom Barber <to...@meteorite.bi> wrote:

> Sounds about right, I didn't delve too deeply, thanks! :)
>
>
> On 23/03/14 20:11, Thomas Bennett wrote:
>
>> Hey Tom,
>>
>> Are you perhaps looking for deleteProductById and deleteProductByName?
>>
>> Cheers,
>> Tom
>>
>> On 23 March 2014 00:15, Tom Barber <to...@meteorite.bi> wrote:
>>
>>  Another random question,
>>>
>>> So you use the Ingester class to check hasProduct and ingest files.......
>>> how do you remove stuff from filemgr?
>>>
>>> Just a thought :)
>>> --
>>> *Tom Barber* | Technical Director
>>>
>>> meteorite bi
>>> *T:* +44 20 8133 3730
>>> *W:* www.meteorite.bi | *Skype:* meteorite.consulting
>>> *A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG,
>>> UK
>>>
>>>
>
> --
> *Tom Barber* | Technical Director
>
> meteorite bi
> *T:* +44 20 8133 3730
> *W:* www.meteorite.bi | *Skype:* meteorite.consulting
> *A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG, UK
>

Re: Filemgr Operations

Posted by Tom Barber <to...@meteorite.bi>.
Sounds about right, I didn't delve too deeply, thanks! :)

On 23/03/14 20:11, Thomas Bennett wrote:
> Hey Tom,
>
> Are you perhaps looking for deleteProductById and deleteProductByName?
>
> Cheers,
> Tom
>
> On 23 March 2014 00:15, Tom Barber <to...@meteorite.bi> wrote:
>
>> Another random question,
>>
>> So you use the Ingester class to check hasProduct and ingest files.......
>> how do you remove stuff from filemgr?
>>
>> Just a thought :)
>> --
>> *Tom Barber* | Technical Director
>>
>> meteorite bi
>> *T:* +44 20 8133 3730
>> *W:* www.meteorite.bi | *Skype:* meteorite.consulting
>> *A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG, UK
>>


-- 
*Tom Barber* | Technical Director

meteorite bi
*T:* +44 20 8133 3730
*W:* www.meteorite.bi | *Skype:* meteorite.consulting
*A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG, UK

Re: Filemgr Operations

Posted by Thomas Bennett <lm...@gmail.com>.
Hey Tom,

Are you perhaps looking for deleteProductById and deleteProductByName?

Cheers,
Tom

On 23 March 2014 00:15, Tom Barber <to...@meteorite.bi> wrote:

> Another random question,
>
> So you use the Ingester class to check hasProduct and ingest files.......
> how do you remove stuff from filemgr?
>
> Just a thought :)
> --
> *Tom Barber* | Technical Director
>
> meteorite bi
> *T:* +44 20 8133 3730
> *W:* www.meteorite.bi | *Skype:* meteorite.consulting
> *A:* Surrey Technology Centre, Surrey Research Park, Guildford, GU2 7YG, UK
>