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
13aa58b6
Commit
13aa58b6
authored
Jan 06, 2015
by
gss2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed log.error options
parent
ba14612a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
Hook.java
hivehook/src/main/java/com/aetna/hadoop/dgc/hive/Hook.java
+1
-8
No files found.
hivehook/src/main/java/com/aetna/hadoop/dgc/hive/Hook.java
View file @
13aa58b6
...
@@ -49,12 +49,6 @@ import org.apache.hadoop.util.StringUtils;
...
@@ -49,12 +49,6 @@ import org.apache.hadoop.util.StringUtils;
public
class
Hook
implements
ExecuteWithHookContext
{
public
class
Hook
implements
ExecuteWithHookContext
{
private
static
final
Log
LOG
=
LogFactory
.
getLog
(
Hook
.
class
.
getName
());
private
static
final
Log
LOG
=
LogFactory
.
getLog
(
Hook
.
class
.
getName
());
//private static TimelineClient timelineClient;
private
enum
EntityTypes
{
HIVE_QUERY_ID
};
private
enum
EventTypes
{
QUERY_SUBMITTED
,
QUERY_COMPLETED
};
private
enum
OtherInfoTypes
{
QUERY
,
STATUS
,
TEZ
,
MAPRED
};
private
enum
PrimaryFilterTypes
{
user
};
private
static
final
int
WAIT_TIME
=
3
;
private
HiveLineageBean
hlb
;
private
HiveLineageBean
hlb
;
@Override
@Override
...
@@ -68,7 +62,6 @@ public class Hook implements ExecuteWithHookContext {
...
@@ -68,7 +62,6 @@ public class Hook implements ExecuteWithHookContext {
}
}
ExplainTask
explain
=
new
ExplainTask
();
ExplainTask
explain
=
new
ExplainTask
();
explain
.
initialize
(
hookContext
.
getConf
(),
plan
,
null
);
explain
.
initialize
(
hookContext
.
getConf
(),
plan
,
null
);
List
<
Task
<?>>
rootTasks
=
plan
.
getRootTasks
();
String
queryId
=
plan
.
getQueryId
();
String
queryId
=
plan
.
getQueryId
();
String
queryStartTime
=
plan
.
getQueryStartTime
().
toString
();
String
queryStartTime
=
plan
.
getQueryStartTime
().
toString
();
String
user
=
hookContext
.
getUgi
().
getUserName
();
String
user
=
hookContext
.
getUgi
().
getUserName
();
...
@@ -92,7 +85,7 @@ public class Hook implements ExecuteWithHookContext {
...
@@ -92,7 +85,7 @@ public class Hook implements ExecuteWithHookContext {
case
PRE_EXEC_HOOK:
case
PRE_EXEC_HOOK:
Set
<
ReadEntity
>
db
=
hookContext
.
getInputs
();
Set
<
ReadEntity
>
db
=
hookContext
.
getInputs
();
for
(
Object
o
:
db
)
{
for
(
Object
o
:
db
)
{
LOG
.
error
(
"DB:Table="
+
o
.
toString
());
LOG
.
debug
(
"DB:Table="
+
o
.
toString
());
}
}
currentTime
=
System
.
currentTimeMillis
();
currentTime
=
System
.
currentTimeMillis
();
...
...
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