Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GORA-638] Add gora-ignite into the gora-tutorial module #195

Merged
merged 3 commits into from Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 40 additions & 0 deletions 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>
8 changes: 7 additions & 1 deletion gora-tutorial/conf/gora.properties
Expand Up @@ -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
Expand Down Expand Up @@ -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
#gora.datastore.kudu.masterAddresses=localhost:7051

##Ignite dataStore properties
#gora.datastore.ignite.schema=PUBLIC
#gora.datastore.ignite.host=localhost
#gora.datastore.ignite.port=10800
7 changes: 6 additions & 1 deletion gora-tutorial/pom.xml
Expand Up @@ -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>
Expand Down
@@ -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
11 changes: 11 additions & 0 deletions pom.xml
Expand Up @@ -1012,6 +1012,17 @@
<version>${project.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 <dependency>
        <groupId>org.apache.gora</groupId>
        <artifactId>gora-redis</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.gora</groupId>
        <artifactId>gora-redis</artifactId>
        <version>${project.version}</version>
        <type>test-jar</type>
      </dependency>

Do we need these redis dependencies as part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that. I unintentionally mixed code from other experiments.

<groupId>org.apache.gora</groupId>
<artifactId>gora-redis</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.gora</groupId>
<artifactId>gora-redis</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.gora</groupId>
<artifactId>gora-kudu</artifactId>
Expand Down