Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
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
atlas
Commits
f999c67a
Commit
f999c67a
authored
Apr 23, 2015
by
Aaron Dossett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search for hive configuration variables
parent
c41930f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
import-hive.sh
addons/hive-bridge/src/bin/import-hive.sh
+14
-1
No files found.
addons/hive-bridge/src/bin/import-hive.sh
View file @
f999c67a
...
...
@@ -70,7 +70,20 @@ while [[ ${1} =~ ^\-D ]]; do
done
TIME
=
`
date
+%Y%m%d%H%M%s
`
${
JAVA_BIN
}
${
JAVA_PROPERTIES
}
-cp
/etc/hive/conf:
${
METADATACPPATH
}
org.apache.hadoop.metadata.hive.bridge.HiveMetaStoreBridge
if
[
!
-z
"
$HIVE_CONF_DIR
"
]
;
then
HIVE_CP
=
$HIVE_CONF_DIR
elif
[
!
-z
"
$HIVE_HOME
"
]
;
then
HIVE_CP
=
"
$HIVE_HOME
/conf"
elif
[
-e
/usr/hdp/current/hive-client/conf
]
;
then
HIVE_CP
=
"/usr/hdp/current/hive-client/conf"
else
echo
"Could not find a valid HIVE configuration"
exit
1
fi
export
HIVE_CP
echo
Using Hive configuration directory
[
$HIVE_CP
]
${
JAVA_BIN
}
${
JAVA_PROPERTIES
}
-cp
${
HIVE_CP
}
:
${
METADATACPPATH
}
org.apache.hadoop.metadata.hive.bridge.HiveMetaStoreBridge
RETVAL
=
$?
[
$RETVAL
-eq
0
]
&&
echo
Hive Data Model Imported!!!
...
...
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