...
Info | ||
---|---|---|
| ||
cd ~/hadoop/share/hadoop/hdfs/ export CLASSPATH=`for f in $PWD/*.jar; do CLASSPATH=$CLASSPATH:$f; done; echo $CLASSPATH;` cd ~/hadoop/share/hadoop/common/ export CLASSPATH=`for f in $PWD/*.jar; do CLASSPATH=$CLASSPATH:$f; done; echo $CLASSPATH;` cd ~/hadoop/share/hadoop/common/lib export CLASSPATH=`for f in $PWD/*.jar; do CLASSPATH=$CLASSPATH:$f; done; echo $CLASSPATH;` export CLASSPATH=$CLASSPATH:~/hadoop/etc/hadoop |
Setup Wizard Example
This example shows an Oracle-to-Hadoop one-way replication using the following information.
...
No Format | ||
---|---|---|
| ||
[oracle@source reptest1]$ ./reptest1-run-source.sh Initializing......done DDC loaded from database (391 variables). Dbvisit Replicate version 2.8 Copyright (C) Dbvisit Software Limited. All rights reserved. DDC file /home/oracle/reptest1/reptest1-MINE.ddc loaded. Starting process MINE...Created directory /home/oracle/reptest1/ddc_backup Created directory /home/oracle/reptest1/log/trace/ Created directory /home/oracle/reptest1/mine/ started [oracle@source reptest1]$ |
Info | ||
---|---|---|
| ||
Before you start an APPLY process check where DBVisit replicate will store Oracle's data on Hadoop.. During step `Step 4 - Process Configuration` you can manage location by variables APPLY_FILEOUT_STAGING_DIR and APPLY_FILEOUT_TARGET_DIR. In the output of step for you'll see recapitulation: [APPLY_FILEOUT_STAGING_DIR]: Staging HDFS directory for output files: /replicate/Hadoop/out_stage/stage-%O.%A-%I_%C_%X.%E Ensure you have created /replicate directory in the Hadoop too. If you hit error: FATAL-8001: Internal error: load of libhdfs.so failed: Inappropriate ioctl for device at expression handle at apply_file.c:961 Add libjvm* library to $LD_LIBRARY_PATH variable. |
Starting APPLY on target
No Format | ||
---|---|---|
| ||
[oracle@target reptest1]$ ./reptest1-run-target.sh Initializing......done DDC loaded from database (392 variables). Dbvisit Replicate version 2.8 Copyright (C) Dbvisit Software Limited. All rights reserved. DDC file /home/oracle/reptest1/reptest1-APPLY.ddc loaded. Starting process APPLY...Created directory /home/oracle/reptest1/ddc_backup Created directory /home/oracle/reptest1/log/ Created directory /home/oracle/reptest1/log/trace/ Created directory /home/oracle/reptest1/apply started [oracle@target reptest1]$ |
...