Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
AppTag
Commits
18006e53
Commit
18006e53
authored
6 years ago
by
wangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e883f3f7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
azkaban.zip
azkaban.zip
+0
-0
mysql2hive.job
azkaban/mysql2hive.job
+4
-0
mysql2hive.sh
azkaban/mysql2hive.sh
+9
-0
No files found.
azkaban.zip
View file @
18006e53
No preview for this file type
This diff is collapsed.
Click to expand it.
azkaban/mysql2hive.job
0 → 100644
View file @
18006e53
type=command
retries=3
command=sh -x mysql2hive.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
azkaban/mysql2hive.sh
0 → 100644
View file @
18006e53
#!/usr/sh
DT
=
$(
date
+%Y%m%d
-d
"-1 day
$ScheduleTime
"
)
sqoop import
--connect
jdbc:mysql://dataplatform-app-tag.c5yzcdreb1xr.us-east-1.rds.amazonaws.com:3306/app_tag
\
--username
apptag_rw
--password
7gyLEVtkER3u8c9
--table
tag_list
--input-fields-terminated-by
'\t'
--lines-terminated-by
'\n'
\
--hive-import
--hive-overwrite
--create-hive-table
--hive-table
dwh.app_tag
--null-string
'\\N'
--null-non-string
'\\N'
\
--compression-codec
"com.hadoop.compression.lzo.LzopCodec"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment