You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2015/02/17 07:50:46 UTC

svn commit: r1660294 - in /oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main: assembly/assembly.xml resources/bin/ingest resources/etc/tika.conf

Author: mattmann
Date: Tue Feb 17 06:50:46 2015
New Revision: 1660294

URL: http://svn.apache.org/r1660294
Log:
- fix for OODT-812 RADIX ingest script

Added:
    oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/ingest
    oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/etc/tika.conf
Modified:
    oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/assembly/assembly.xml

Modified: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/assembly/assembly.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/assembly/assembly.xml?rev=1660294&r1=1660293&r2=1660294&view=diff
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/assembly/assembly.xml (original)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/assembly/assembly.xml Tue Feb 17 06:50:46 2015
@@ -30,6 +30,11 @@
       <fileMode>775</fileMode>
     </fileSet>
     <fileSet>
+      <directory>${basedir}/src/main/resources/etc</directory>
+      <outputDirectory>data/met</outputDirectory>
+      <includes/>
+    </fileSet>    
+    <fileSet>
       <directory>target</directory>
       <outputDirectory>logs</outputDirectory>
       <excludes>

Added: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/ingest
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/ingest?rev=1660294&view=auto
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/ingest (added)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/ingest Tue Feb 17 06:50:46 2015
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+export DIR=`dirname $0`
+cd $DIR
+export DIR_PATH=`pwd`
+
+if [ "$#" -ne 1 ]; then
+   echo "Usage: $0 <dir>"
+   exit 1
+else
+    export PRODUCT_PATH=$1
+    $DIR_PATH/../crawler/bin/crawler_launcher \
+    --filemgrUrl $FILEMGR_URL \
+    --operation --launchMetCrawler \
+    --clientTransferer org.apache.oodt.cas.filemgr.datatransfer.InPlaceDataTransferFactory \
+    --productPath $1 \
+    --metExtractor org.apache.oodt.cas.metadata.extractors.TikaCmdLineMetExtractor \
+    --metExtractorConfig $OODT_HOME/data/met/tika.conf
+fi
\ No newline at end of file

Added: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/etc/tika.conf
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/etc/tika.conf?rev=1660294&view=auto
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/etc/tika.conf (added)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/etc/tika.conf Tue Feb 17 06:50:46 2015
@@ -0,0 +1 @@
+ProductType=GenericFile
\ No newline at end of file