#!/bin/sh # Licensed Materials - Property of IBM # IBM Cognos Products: Moser # (C) Copyright IBM Corp. 2020 # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # This shell script assumes it is being executed from bin or bin64 directory. # migrates uploaded files from older version to the new one # ParquetMigrate - A tool to migrate uploaded files from older version to the new one # Usage: # Options: # -h : url pointing to the cognos server [optional] # -n : Authentication namespace, -u and -p required if specified [optional] # -u : Namespace user, -n and -p required if specified [optional] # -p : Namespace password, -n and -u required if specified [optional] # -d : display the information about the parquet files that needed an upgrade [optional] # -k : ignore the SSL certificate validation [optional] # -l : apply to only to the number of last used files [optional] # -t : filter displayed results by task id (only works with -d) [optional] # -s : store id (will apply the command down to the hierarchy starting with the provided store ID)[optional] # -m : smarts upgrade after the parquet conversion [optional] # -a : smarts version upgrade only [optional] # # Examples: # Display parquet files/datasets info: # ParquetMigrate -d -n namespace -u username -p password # or # ParquetMigrate -d -h http://localhost:9300 -n namespace -u username -p password # # Upgrade parquet files/datasets: # ParquetMigrate -n namespace -u username -p password # # Upgrade parquet files/datasets and apply deep smart analysis: # ParquetMigrate -m -n namespace -u username -p password SEP=":" JAVA="../ibm-jre/jre/bin/java" CRN_LIB_HOME="../webapps/p2pd/WEB-INF/lib" if [ `uname` = "Windows_NT" ] then SEP=";" echo `uname` fi CLASSPATH="." CLASSPATH="$CLASSPATH$SEP$CRN_LIB_HOME/*" CLASSPATH="$CLASSPATH$SEP../flint/libs/*" CLASSPATH="$CLASSPATH$SEP../bin/slf4j-api-1.7.23.jar$SEP../bin/slf4j-nop-1.7.23.jar" JAVA="$JAVA -Dcom.ibm.jsse2.overrideDefaultTLS=true" $JAVA -classpath "$CLASSPATH" com.ibm.bi.platform.moser.common.utils.ParquetUpgrade "$@"