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
db8ac80d
Commit
db8ac80d
authored
Apr 24, 2015
by
Aaron Niskode-Dossett
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #58 from hortonworks/issue56
Add hive configuration to hive-bridge classpath
parents
a4af9e31
dcfc483f
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 @
db8ac80d
...
...
@@ -70,7 +70,20 @@ while [[ ${1} =~ ^\-D ]]; do
done
TIME
=
`
date
+%Y%m%d%H%M%s
`
${
JAVA_BIN
}
${
JAVA_PROPERTIES
}
-cp
${
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
=
"/etc/hive/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