You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by dj...@apache.org on 2020/03/04 06:27:23 UTC
[gora] branch master updated: [GORA-638] Add gora-ignite into the
gora-tutorial module (#195)
This is an automated email from the ASF dual-hosted git repository.
djkevincr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gora.git
The following commit(s) were added to refs/heads/master by this push:
new 6b7e9a7 [GORA-638] Add gora-ignite into the gora-tutorial module (#195)
6b7e9a7 is described below
commit 6b7e9a7b6c9b6a6c1982da45b160783970a45285
Author: José Ortiz <je...@gmail.com>
AuthorDate: Wed Mar 4 01:26:34 2020 -0500
[GORA-638] Add gora-ignite into the gora-tutorial module (#195)
* Add ignite to gora-tutorial
* Add logging configurations for Ignite
* Revert changes in pom.xml
---
gora-tutorial/conf/gora-ignite-mapping.xml | 40 ++++++++++++
gora-tutorial/conf/gora.properties | 8 ++-
gora-tutorial/pom.xml | 7 +-
.../META-INF/config/java.util.logging.properties | 74 ++++++++++++++++++++++
4 files changed, 127 insertions(+), 2 deletions(-)
diff --git a/gora-tutorial/conf/gora-ignite-mapping.xml b/gora-tutorial/conf/gora-ignite-mapping.xml
new file mode 100644
index 0000000..5b0237a
--- /dev/null
+++ b/gora-tutorial/conf/gora-ignite-mapping.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<gora-otd>
+
+ <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long" table="Pageview" >
+ <primarykey column="pkpageview" type="BIGINT" />
+ <field name="url" column="url" type="VARCHAR"/>
+ <field name="timestamp" column="timestamp" type="BIGINT"/>
+ <field name="ip" column="ip" type="VARCHAR"/>
+ <field name="httpMethod" column="httpMethod" type="VARCHAR"/>
+ <field name="httpStatusCode" column="httpStatusCode" type="INT"/>
+ <field name="responseSize" column="responseSize" type="INT"/>
+ <field name="referrer" column="referrer" type="VARCHAR"/>
+ <field name="userAgent" column="userAgent" type="VARCHAR"/>
+ </class>
+
+ <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String" table="Metrics" >
+ <primarykey column="pkmetric" type="VARCHAR" />
+ <field name="metricDimension" column="metricDimension" type="VARCHAR"/>
+ <field name="timestamp" column="timestamp" type="BIGINT"/>
+ <field name="metric" column="metric" type="VARCHAR"/>
+ </class>
+</gora-otd>
diff --git a/gora-tutorial/conf/gora.properties b/gora-tutorial/conf/gora.properties
index a1b2433..718a27a 100644
--- a/gora-tutorial/conf/gora.properties
+++ b/gora-tutorial/conf/gora.properties
@@ -23,6 +23,7 @@ gora.datastore.default=org.apache.gora.hbase.store.HBaseStore
#gora.datastore.default=org.apache.gora.aerospike.store.AerospikeStore
#gora.datastore.default=org.apache.gora.mongodb.store.MongoStore
#gora.datastore.default=org.apache.gora.kudu.store.KuduStore
+#gora.datastore.default=org.apache.gora.ignite.store.IgniteStore
#gora.datastore.default=org.apache.gora.avro.store.AvroStore
#gora.avrostore.input.path=hdfs://localhost:9000/gora.avrostore.test.input
@@ -76,4 +77,9 @@ gora.datastore.jcache.provider=com.hazelcast.cache.impl.HazelcastServerCachingPr
#gora.mongodb.writeconcern=acknowledged
##Kudu dataStore properties
-#gora.datastore.kudu.masterAddresses=localhost:7051
\ No newline at end of file
+#gora.datastore.kudu.masterAddresses=localhost:7051
+
+##Ignite dataStore properties
+#gora.datastore.ignite.schema=PUBLIC
+#gora.datastore.ignite.host=localhost
+#gora.datastore.ignite.port=10800
\ No newline at end of file
diff --git a/gora-tutorial/pom.xml b/gora-tutorial/pom.xml
index bbc94ee..e89ff95 100644
--- a/gora-tutorial/pom.xml
+++ b/gora-tutorial/pom.xml
@@ -138,7 +138,12 @@
<groupId>org.apache.gora</groupId>
<artifactId>gora-mongodb</artifactId>
</dependency>
-
+
+ <dependency>
+ <groupId>org.apache.gora</groupId>
+ <artifactId>gora-ignite</artifactId>
+ </dependency>
+
<dependency>
<groupId>org.apache.gora</groupId>
<artifactId>gora-kudu</artifactId>
diff --git a/gora-tutorial/src/main/resources/META-INF/config/java.util.logging.properties b/gora-tutorial/src/main/resources/META-INF/config/java.util.logging.properties
new file mode 100644
index 0000000..72e267f
--- /dev/null
+++ b/gora-tutorial/src/main/resources/META-INF/config/java.util.logging.properties
@@ -0,0 +1,74 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#########################################################################
+# Default java.util.logging configuration for Ignite.
+#
+# To use another config file use `java.util.logging.config.file` system
+# property. For example `java -Djava.util.logging.config.file=myfile`
+#########################################################################
+
+#
+# Comma-separated list of logging "handlers". Note that some of them may be
+# reconfigured (or even removed) at runtime according to system properties.
+#
+# By default all messages will be passed to console and file.
+#
+handlers=java.util.logging.ConsoleHandler, org.apache.ignite.logger.java.JavaLoggerFileHandler
+
+#
+# Default global logging level.
+# This specifies which kinds of events are logged across all loggers.
+# For any given category this global level can be overriden by a category
+# specific level.
+# Note that handlers also have a separate level setting to limit messages
+# printed through it.
+#
+.level=OFF
+
+#
+# Uncomment to allow debug messages for entire Ignite package.
+#
+#org.apache.ignite.level=FINE
+
+#
+# Uncomment this line to enable cache query execution tracing.
+#
+#org.apache.ignite.cache.queries.level=FINE
+
+#
+# Uncomment to disable courtesy notices, such as SPI configuration
+# consistency warnings.
+#
+#org.apache.ignite.CourtesyConfigNotice.level=OFF
+
+#
+# Console handler logs all messages with importance level `INFO` and above
+# into standard error stream (`System.err`).
+#
+java.util.logging.ConsoleHandler.formatter=org.apache.ignite.logger.java.JavaLoggerFormatter
+java.util.logging.ConsoleHandler.level=INFO
+
+#
+# File handler logs all messages into files with pattern `ignite-%{id8}.%g.log`
+# under `$IGNITE_HOME/work/log/` directory. The placeholder `%{id8}` is a truncated node ID.
+#
+org.apache.ignite.logger.java.JavaLoggerFileHandler.formatter=org.apache.ignite.logger.java.JavaLoggerFormatter
+org.apache.ignite.logger.java.JavaLoggerFileHandler.pattern=ignite-%{id8}.%g.log
+org.apache.ignite.logger.java.JavaLoggerFileHandler.level=INFO
+org.apache.ignite.logger.java.JavaLoggerFileHandler.limit=10485760
+org.apache.ignite.logger.java.JavaLoggerFileHandler.count=10