Home >> Big Data Hadoop >> Sqoop job scheduling in Big Data Hadoop

Sqoop job scheduling in Big Data Hadoop

•Vanila/Apache hadoop

     Using Cron job in unix

Script.sh

#!/bin/bash

DIR=$1

TARGET_DIR_ID=$DIR

echo "DIR:" $DIR  "TARGET_DIR_ID: "$TARGET_DIR_ID

      sqoop import --connect jdbc:oracle:thin:@hostname:port/service --driver com.oracle.--username sqoop --password  --target-dir /test/$TARGET_DIR_ID --fields-terminated-by '\t'

$> crontab –e

01 04 * * * /usr/bin/script.sh

•Cloudera

Oozie job schedular

Post Your Comment

Next Questions
Sqoop cron Job
Sqoop cron job example
Hive Prerequisites
Hive Installation
What is Hive
Hive MapReduce Execution
Features of Hive
Hive Architecture
Configuring Metastore of Hive
Hive vs Hadoop
Hive Create Database
Hive Internal and External Table
Hive Internal Table
Drawback of Hive Internal/Managed Table
HIve External Table
Hive DDL
Hive CLI Options
Hive shell commands
Hive Logging & Resources
Hive Types Of Joins
Hive Joins
Hive Joins cont
Hive Built-in Operators
Hive Data Types
Hive Built-in Functions

Copyright ©2022 coderraj.com. All Rights Reserved.