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
7b7f4e0b
Commit
7b7f4e0b
authored
Aug 18, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-674 Falcon Hook should use timestamps instead of long(ayubkhan via sumasai)
parent
1a405f9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
FalconEvent.java
.../main/java/org/apache/atlas/falcon/event/FalconEvent.java
+1
-7
AtlasService.java
...in/java/org/apache/atlas/falcon/service/AtlasService.java
+2
-1
release-log.txt
release-log.txt
+1
-0
No files found.
addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java
View file @
7b7f4e0b
...
...
@@ -28,13 +28,11 @@ import java.util.Date;
public
class
FalconEvent
{
protected
String
user
;
protected
OPERATION
operation
;
protected
long
timestamp
;
protected
Entity
entity
;
public
FalconEvent
(
String
doAsUser
,
OPERATION
falconOperation
,
long
timestamp
,
Entity
entity
)
{
public
FalconEvent
(
String
doAsUser
,
OPERATION
falconOperation
,
Entity
entity
)
{
this
.
user
=
doAsUser
;
this
.
operation
=
falconOperation
;
this
.
timestamp
=
timestamp
;
this
.
entity
=
entity
;
}
...
...
@@ -55,10 +53,6 @@ public class FalconEvent {
return
operation
;
}
public
Date
getTimestamp
()
{
return
new
Date
(
timestamp
);
}
public
Entity
getEntity
()
{
return
entity
;
}
...
...
addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java
View file @
7b7f4e0b
...
...
@@ -30,6 +30,7 @@ import org.apache.falcon.service.FalconService;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* Atlas service to publish Falcon events
*/
...
...
@@ -124,7 +125,7 @@ public class AtlasService implements FalconService, ConfigurationChangeListener
try
{
FalconEvent
event
=
new
FalconEvent
(
EventUtil
.
getUser
(),
operation
,
System
.
currentTimeMillis
(),
entity
);
new
FalconEvent
(
EventUtil
.
getUser
(),
operation
,
entity
);
FalconEventPublisher
.
Data
data
=
new
FalconEventPublisher
.
Data
(
event
);
publisher
.
publish
(
data
);
}
catch
(
Exception
ex
)
{
...
...
release-log.txt
View file @
7b7f4e0b
...
...
@@ -3,6 +3,7 @@ Apache Atlas Release Notes
--trunk - unreleased
INCOMPATIBLE CHANGES:
ATLAS-674 Falcon Hook should use timestamps instead of long(ayubkhan via sumasai)
ATLAS-675 Storm Hook should use timetsamps as Date type instead of Long (ayubkhan via sumasai)
ATLAS-1122 Change trait edge labels to have trait name alone (sumasai)
ATLAS-1060 Add composite indexes for exact match performance improvements for all attributes (sumasai via shwethags)
...
...
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