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
60789da3
Commit
60789da3
authored
Mar 11, 2018
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2495: updated Kafka version to 1.0.0
parent
ac2c1a77
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
6 deletions
+26
-6
atlas-application.properties
...on-bridge/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...se-bridge/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...ve-bridge/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...op-bridge/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...rm-bridge/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...orization/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...hdb/janus/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
...db/titan0/src/test/resources/atlas-application.properties
+1
-0
atlas-application.properties
intg/src/test/resources/atlas-application.properties
+1
-0
EmbeddedKafkaServer.java
...main/java/org/apache/atlas/kafka/EmbeddedKafkaServer.java
+13
-2
KafkaNotificationMockTest.java
...ava/org/apache/atlas/kafka/KafkaNotificationMockTest.java
+2
-1
pom.xml
pom.xml
+1
-1
BaseResourceIT.java
...java/org/apache/atlas/web/integration/BaseResourceIT.java
+0
-2
atlas-application.properties
webapp/src/test/resources/atlas-application.properties
+1
-0
No files found.
addons/falcon-bridge/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -79,6 +79,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
addons/hbase-bridge/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -79,6 +79,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
addons/hive-bridge/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -79,6 +79,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
addons/sqoop-bridge/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -79,6 +79,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
addons/storm-bridge/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -81,6 +81,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
authorization/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -97,6 +97,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
graphdb/janus/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -74,6 +74,7 @@ atlas.kafka.consumer.timeout.ms=100
atlas.kafka.auto.commit.interval.ms
=
100
atlas.kafka.hook.group.id
=
atlas
atlas.kafka.entities.group.id
=
atlas_entities
atlas.kafka.offsets.topic.replication.factor
=
1
######### Entity Audit Configs #########
atlas.audit.hbase.tablename
=
ATLAS_ENTITY_AUDIT_EVENTS
...
...
graphdb/titan0/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -75,6 +75,7 @@ atlas.kafka.consumer.timeout.ms=100
atlas.kafka.auto.commit.interval.ms
=
100
atlas.kafka.hook.group.id
=
atlas
atlas.kafka.entities.group.id
=
atlas_entities
atlas.kafka.offsets.topic.replication.factor
=
1
######### Entity Audit Configs #########
atlas.audit.hbase.tablename
=
ATLAS_ENTITY_AUDIT_EVENTS
...
...
intg/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -97,6 +97,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
notification/src/main/java/org/apache/atlas/kafka/EmbeddedKafkaServer.java
View file @
60789da3
...
...
@@ -17,15 +17,16 @@
*/
package
org
.
apache
.
atlas
.
kafka
;
import
kafka.metrics.KafkaMetricsReporter
;
import
kafka.server.KafkaConfig
;
import
kafka.server.KafkaServer
;
import
kafka.utils.Time
;
import
org.apache.atlas.ApplicationProperties
;
import
org.apache.atlas.AtlasException
;
import
org.apache.atlas.service.Service
;
import
org.apache.commons.configuration.Configuration
;
import
org.apache.commons.configuration.ConfigurationConverter
;
import
org.apache.kafka.clients.producer.*
;
import
org.apache.kafka.common.utils.Time
;
import
org.apache.zookeeper.server.NIOServerCnxnFactory
;
import
org.apache.zookeeper.server.ServerCnxnFactory
;
import
org.apache.zookeeper.server.ZooKeeperServer
;
...
...
@@ -34,6 +35,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.core.annotation.Order
;
import
org.springframework.stereotype.Component
;
import
scala.Option
;
import
scala.collection.mutable.Buffer
;
import
javax.inject.Inject
;
import
java.io.File
;
...
...
@@ -43,6 +45,7 @@ import java.net.MalformedURLException;
import
java.net.URISyntaxException
;
import
java.net.URL
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
@Component
...
...
@@ -135,7 +138,10 @@ public class EmbeddedKafkaServer implements Service {
brokerConfig
.
setProperty
(
"log.dirs"
,
constructDir
(
"kafka"
).
getAbsolutePath
());
brokerConfig
.
setProperty
(
"log.flush.interval.messages"
,
String
.
valueOf
(
1
));
kafkaServer
=
new
KafkaServer
(
KafkaConfig
.
fromProps
(
brokerConfig
),
new
SystemTime
(),
Option
.
apply
(
this
.
getClass
().
getName
()));
List
<
KafkaMetricsReporter
>
metrics
=
new
ArrayList
<>();
Buffer
<
KafkaMetricsReporter
>
metricsReporters
=
scala
.
collection
.
JavaConversions
.
asScalaBuffer
(
metrics
);
kafkaServer
=
new
KafkaServer
(
KafkaConfig
.
fromProps
(
brokerConfig
),
new
SystemTime
(),
Option
.
apply
(
this
.
getClass
().
getName
()),
metricsReporters
);
kafkaServer
.
startup
();
...
...
@@ -174,6 +180,11 @@ public class EmbeddedKafkaServer implements Service {
}
@Override
public
long
hiResClockMs
()
{
return
TimeUnit
.
NANOSECONDS
.
toMillis
(
nanoseconds
());
}
@Override
public
void
sleep
(
long
arg0
)
{
try
{
Thread
.
sleep
(
arg0
);
...
...
notification/src/test/java/org/apache/atlas/kafka/KafkaNotificationMockTest.java
View file @
60789da3
...
...
@@ -77,7 +77,8 @@ public class KafkaNotificationMockTest {
String
topicName
=
kafkaNotification
.
getTopicName
(
NotificationInterface
.
NotificationType
.
HOOK
);
String
message
=
"This is a test message"
;
Future
returnValue
=
mock
(
Future
.
class
);
when
(
returnValue
.
get
()).
thenReturn
(
new
RecordMetadata
(
new
TopicPartition
(
topicName
,
0
),
0
,
0
));
TopicPartition
topicPartition
=
new
TopicPartition
(
topicName
,
0
);
when
(
returnValue
.
get
()).
thenReturn
(
new
RecordMetadata
(
topicPartition
,
0
,
0
,
0
,
Long
.
valueOf
(
0
),
0
,
0
));
ProducerRecord
expectedRecord
=
new
ProducerRecord
(
topicName
,
message
);
when
(
producer
.
send
(
expectedRecord
)).
thenReturn
(
returnValue
);
...
...
pom.xml
View file @
60789da3
...
...
@@ -546,7 +546,7 @@
<hadoop.version>
2.7.1
</hadoop.version>
<hbase.version>
1.1.2
</hbase.version>
<solr.version>
5.5.1
</solr.version>
<kafka.version>
0.10
.0.0
</kafka.version>
<kafka.version>
1
.0.0
</kafka.version>
<kafka.scala.binary.version>
2.11
</kafka.scala.binary.version>
<curator.version>
2.11.0
</curator.version>
<zookeeper.version>
3.4.6
</zookeeper.version>
...
...
webapp/src/test/java/org/apache/atlas/web/integration/BaseResourceIT.java
View file @
60789da3
...
...
@@ -36,7 +36,6 @@ import org.apache.atlas.model.typedef.AtlasStructDef.AtlasAttributeDef;
import
org.apache.atlas.model.typedef.AtlasStructDef.AtlasAttributeDef.Cardinality
;
import
org.apache.atlas.model.typedef.AtlasStructDef.AtlasConstraintDef
;
import
org.apache.atlas.notification.NotificationInterface
;
import
org.apache.atlas.type.AtlasTypeRegistry
;
import
org.apache.atlas.v1.model.instance.Id
;
import
org.apache.atlas.v1.model.instance.Referenceable
;
import
org.apache.atlas.v1.model.instance.Struct
;
...
...
@@ -57,7 +56,6 @@ import org.slf4j.LoggerFactory;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
javax.inject.Inject
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
...
...
webapp/src/test/resources/atlas-application.properties
View file @
60789da3
...
...
@@ -80,6 +80,7 @@ atlas.kafka.entities.group.id=atlas_entities
atlas.kafka.enable.auto.commit
=
false
atlas.kafka.auto.offset.reset
=
earliest
atlas.kafka.session.timeout.ms
=
30000
atlas.kafka.offsets.topic.replication.factor
=
1
...
...
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