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
f623bddf
Commit
f623bddf
authored
Jul 01, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-966 Exit execution of import_hive.sh if HIVE_HOME is not set (svimal2106 via sumasai)
parent
14863225
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
import-hive.sh
addons/hive-bridge/src/bin/import-hive.sh
+11
-5
release-log.txt
release-log.txt
+1
-0
No files found.
addons/hive-bridge/src/bin/import-hive.sh
View file @
f623bddf
...
@@ -82,6 +82,17 @@ else
...
@@ -82,6 +82,17 @@ else
exit
1
exit
1
fi
fi
echo
Using Hive configuration directory
[
"
$HIVE_CP
"
]
if
[
-z
"
$HIVE_HOME
"
]
;
then
echo
"Please set HIVE_HOME to the root of Hive installation"
exit
1
fi
for
i
in
"
${
HIVE_HOME
}
/lib/"
*
.jar
;
do
HIVE_CP
=
"
${
HIVE_CP
}
:
$i
"
done
#Add hadoop conf in classpath
#Add hadoop conf in classpath
if
[
!
-z
"
$HADOOP_CLASSPATH
"
]
;
then
if
[
!
-z
"
$HADOOP_CLASSPATH
"
]
;
then
HADOOP_CP
=
$HADOOP_CLASSPATH
HADOOP_CP
=
$HADOOP_CLASSPATH
...
@@ -95,10 +106,6 @@ else
...
@@ -95,10 +106,6 @@ else
exit
1
exit
1
fi
fi
for
i
in
"
${
HIVE_HOME
}
/lib/"
*
.jar
;
do
HIVE_CP
=
"
${
HIVE_CP
}
:
$i
"
done
CP
=
"
${
ATLASCPPATH
}
:
${
HIVE_CP
}
:
${
HADOOP_CP
}
"
CP
=
"
${
ATLASCPPATH
}
:
${
HIVE_CP
}
:
${
HADOOP_CP
}
"
# If running in cygwin, convert pathnames and classpath to Windows format.
# If running in cygwin, convert pathnames and classpath to Windows format.
...
@@ -120,7 +127,6 @@ while [[ ${1} =~ ^\-D ]]; do
...
@@ -120,7 +127,6 @@ while [[ ${1} =~ ^\-D ]]; do
shift
shift
done
done
echo
Using Hive configuration directory
[
"
$HIVE_CP
"
]
echo
"Log file for import is
$LOGFILE
"
echo
"Log file for import is
$LOGFILE
"
"
${
JAVA_BIN
}
"
${
JAVA_PROPERTIES
}
-cp
"
${
CP
}
"
org.apache.atlas.hive.bridge.HiveMetaStoreBridge
"
${
JAVA_BIN
}
"
${
JAVA_PROPERTIES
}
-cp
"
${
CP
}
"
org.apache.atlas.hive.bridge.HiveMetaStoreBridge
...
...
release-log.txt
View file @
f623bddf
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ALL CHANGES:
ATLAS-966 Exit execution of import_hive.sh if HIVE_HOME is not set (svimal2106 via sumasai)
--Release 0.7-incubating
--Release 0.7-incubating
...
...
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