kandi background
Explore Kits

hazelcast | Open Source Streaming Data Platform

 by   hazelcast Java Version: v4.1.9 License: Non-SPDX

 by   hazelcast Java Version: v4.1.9 License: Non-SPDX

Download this library from

kandi X-RAY | hazelcast Summary

hazelcast is a Java library typically used in Big Data, Kafka, Spark, Hadoop applications. hazelcast has no bugs, it has no vulnerabilities, it has build file available and it has high support. However hazelcast has a Non-SPDX License. You can download it from GitHub.
Hazelcast is a distributed computation and storage platform for consistently low-latency querying, aggregation and stateful computation against event streams and traditional data sources. It allows you to quickly build resource-efficient, real-time applications. You can deploy it at any scale from small edge devices to a large cluster of cloud instances. A cluster of Hazelcast nodes share both the data storage and computational load which can dynamically scale up and down. When you add new nodes to the cluster, the data is automatically rebalanced across the cluster and currently running computational tasks (known as jobs) snapshot their state and scale with processing guarantees.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • hazelcast has a highly active ecosystem.
  • It has 4810 star(s) with 1619 fork(s). There are 302 watchers for this library.
  • There were 5 major release(s) in the last 6 months.
  • There are 990 open issues and 6435 have been closed. On average issues are closed in 173 days. There are 191 open pull requests and 0 closed requests.
  • It has a positive sentiment in the developer community.
  • The latest version of hazelcast is v4.1.9
hazelcast Support
Best in #Java
Average in #Java
hazelcast Support
Best in #Java
Average in #Java

quality kandi Quality

  • hazelcast has 0 bugs and 0 code smells.
hazelcast Quality
Best in #Java
Average in #Java
hazelcast Quality
Best in #Java
Average in #Java

securitySecurity

  • hazelcast has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • hazelcast code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
hazelcast Security
Best in #Java
Average in #Java
hazelcast Security
Best in #Java
Average in #Java

license License

  • hazelcast has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
hazelcast License
Best in #Java
Average in #Java
hazelcast License
Best in #Java
Average in #Java

buildReuse

  • hazelcast releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • It has 1199345 lines of code, 119794 functions and 10538 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
hazelcast Reuse
Best in #Java
Average in #Java
hazelcast Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed hazelcast and discovered the below as its top functions. This is intended to give you an instant insight into hazelcast implemented functionality, and help decide if they suit your requirements.

  • Creates the fast read write caches .
  • Initialize map task factories .
  • Creates a portable generic record from a class definition .
  • Called when a snapshot phase is completed .
  • Initialize this instance .
  • Convert a Jetty Rel to a Jetty plan .
  • Submit a job to the coordinator .
  • Create a getter for the given object .
  • Creates an aggregate operation .
  • Handles a execute request .

hazelcast Key Features

Stateful and fault-tolerant data processing and querying over data streams and data at rest using SQL or dataflow API

A comprehensive library of connectors such as Kafka, Hadoop, S3, RDBMS, JMS and many more

Distributed messaging using pub-sub and queues

Distributed, partitioned, queryable key-value store with event listeners, which can also be used to store contextual data for enriching event streams with low latency

A production-ready Raft-implementation which allows lineralizable (CP) concurrency primitives such as distributed locks.

Tight integration for deploying machine learning models with Python to a data processing pipeline

Cloud-native, run everywhere architecture

Zero-downtime operations with rolling upgrades

At-least-once and exactly-once processing guarantees for stream processing pipelines

Data replication between data centers and geographic regions using WAN

Microsecond performance for key-value point lookups and pub-sub

Unique data processing architecture results in 99.99% latency of under 10ms for streaming queries with millions of events per second.

Client libraries in Java, Python, Node.js, .NET, C++ and Go

Operational Data Store

copy iconCopydownload iconDownload
CREATE MAPPING myMap (name varchar EXTERNAL NAME "__key", age INT EXTERNAL NAME "this") 
TYPE IMap
OPTIONS ('keyFormat'='varchar','valueFormat'='int');
INSERT INTO myMap VALUES('Jake', 29);
SELECT * FROM myMap;

Stateful Data Processing

copy iconCopydownload iconDownload
var hz = Hazelcast.bootstrappedInstance();

var p = Pipeline.create();

p.readFrom(KafkaSources.<String, Reading>kafka(kafkaProperties, "sensors"))
 .withTimestamps(event -> event.getValue().timestamp(), 10) // use event timestamp, allowed lag in ms
 .groupingKey(reading -> reading.sensorId())
 .window(sliding(1_000, 10)) // sliding window of 1s by 10ms
 .aggregate(averagingDouble(reading -> reading.temperature()))
 .writeTo(Sinks.logger());

hz.getJet().newJob(p).join();

Messaging

copy iconCopydownload iconDownload
var hz = Hazelcast.bootstrappedInstance();
ITopic<String> topic = hz.getTopic("my_topic");
topic.addMessageListener(msg -> System.out.println(msg));
topic.publish("message");

Building From Source

copy iconCopydownload iconDownload
$ git pull origin master
$ mvn clean package -Dtests

Non-blocking gets on Hazelcast ReplicatedMap?

copy iconCopydownload iconDownload
DeploymentOptions options = new DeploymentOptions().setWorker(true);
vertx.deployVerticle("com.verticles.HazelcastVerticle", options);

Hazelcast Change Data Capture with Postgres

copy iconCopydownload iconDownload
wal_level = logical

How to cache session with IBM WebSphere Liberty on AWS?

copy iconCopydownload iconDownload
・・・
    <!-- JCache Library -->
    <library id="jCacheVendorLib">
        <fileset dir="${shared.resource.dir}/redisson" includes="*.jar"/>
    </library>

    <!-- Session Replication -->
    <httpSessionCache libraryRef="jCacheVendorLib" uri="file:${shared.resource.dir}/redisson/redisson-jcache.yaml"/>
・・・
---
replicatedServersConfig:
  idleConnectionTimeout: 10000
  connectTimeout: 10000
  timeout: 3000
  retryAttempts: 3
  retryInterval: 1500
  failedSlaveReconnectionInterval: 3000
  failedSlaveCheckInterval: 60000
  password: null
  subscriptionsPerConnection: 5
  clientName: xxxxxxx
  loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
  subscriptionConnectionMinimumIdleSize: 1
  subscriptionConnectionPoolSize: 50
  slaveConnectionMinimumIdleSize: 24
  slaveConnectionPoolSize: 64
  masterConnectionMinimumIdleSize: 24
  masterConnectionPoolSize: 64
  readMode: "MASTER_SLAVE"
  subscriptionMode: "MASTER"
  nodeAddresses:
  - "redis://xxxxxxxxxxxxxx01.cache.amazonaws.com:6379"
  - "redis://xxxxxxxxxxxxxx02.cache.amazonaws.com:6379"
  scanInterval: 1000
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.MarshallingCodec> {}
transportMode: "NIO"
-----------------------
・・・
    <!-- JCache Library -->
    <library id="jCacheVendorLib">
        <fileset dir="${shared.resource.dir}/redisson" includes="*.jar"/>
    </library>

    <!-- Session Replication -->
    <httpSessionCache libraryRef="jCacheVendorLib" uri="file:${shared.resource.dir}/redisson/redisson-jcache.yaml"/>
・・・
---
replicatedServersConfig:
  idleConnectionTimeout: 10000
  connectTimeout: 10000
  timeout: 3000
  retryAttempts: 3
  retryInterval: 1500
  failedSlaveReconnectionInterval: 3000
  failedSlaveCheckInterval: 60000
  password: null
  subscriptionsPerConnection: 5
  clientName: xxxxxxx
  loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
  subscriptionConnectionMinimumIdleSize: 1
  subscriptionConnectionPoolSize: 50
  slaveConnectionMinimumIdleSize: 24
  slaveConnectionPoolSize: 64
  masterConnectionMinimumIdleSize: 24
  masterConnectionPoolSize: 64
  readMode: "MASTER_SLAVE"
  subscriptionMode: "MASTER"
  nodeAddresses:
  - "redis://xxxxxxxxxxxxxx01.cache.amazonaws.com:6379"
  - "redis://xxxxxxxxxxxxxx02.cache.amazonaws.com:6379"
  scanInterval: 1000
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.MarshallingCodec> {}
transportMode: "NIO"

Import issue with com.hazelcast.config.MaxSizeConfig

copy iconCopydownload iconDownload
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.hazelcast.config.Config;
import com.hazelcast.config.EvictionConfig;
import com.hazelcast.config.EvictionPolicy;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.MaxSizePolicy;

@Configuration
public class ProductCacheConfig {

    @Bean
    public Config cacheConfig() {
        return new Config()
                .setInstanceName("hazel-instance")
                .addMapConfig(new MapConfig()
                        .setName("product-cache")
                        .setTimeToLiveSeconds(3000)
                        .setEvictionConfig(new EvictionConfig()
                                .setSize(200)
                                .setMaxSizePolicy(MaxSizePolicy.FREE_HEAP_SIZE)
                                .setEvictionPolicy(EvictionPolicy.LRU)
                        )
                );
    }

}

Hazelcast Predicate/ SQL query class not found

copy iconCopydownload iconDownload
Collection<HazelcastInstance> instances = HazelcastClient.getAllHazelcastClients();
Optional<HazelcastInstance> instance = instances.stream().findAny();

Springboot dependency: two dependencies found and Qualifier ignored

copy iconCopydownload iconDownload
@Repository
@RequiredArgsConstructor
@Slf4j
public class MyImplClass{
  @Qualifier("Myqualifier1") MyBean bean;
 
  Person getPerson()
}

Jhipster Spring Boot 2 instances of a microservice on different databases

copy iconCopydownload iconDownload
java -Dspring.profiles.active=dev -Dserver.port=7040 -jar microservice-0.0.1-SNAPSHOT.jar -Dspring-boot.run.arguments= --hazelcast.port=12741 --APP_INSTANCE_NAME=microservice --APP_NAME=Microservice --APP_CLIENT_NAME='MicroserviceApp' --mainflux.broker=10.172.192.26 --APP_SWAGGER_TITLE='Microservice API' --APP_SWAGGER_DESC='Microservice API documentation'
    eureka:
      client:
        enabled: true
        healthcheck:
          enabled: true
        fetch-registry: true
        register-with-eureka: true
        instance-info-replication-interval-seconds: 10
        registry-fetch-interval-seconds: 10
      instance:
        appname: ${APP_INSTANCE_NAME:microservice}
        instanceId: ${APP_INSTANCE_NAME:microservice}:${spring.application.instance-id:${random.value}}
        lease-renewal-interval-in-seconds: 5
        lease-expiration-duration-in-seconds: 10
        status-page-url-path: ${management.endpoints.web.base-path}/info
        health-check-url-path: ${management.endpoints.web.base-path}/health
        metadata-map:
          zone: primary # This is needed for the load balancer
          profile: ${spring.profiles.active}
          version: #project.version#
          git-version: ${git.commit.id.describe:}
          git-commit: ${git.commit.id.abbrev:}
          git-branch: ${git.branch:}
...
...
...
-----------------------
java -Dspring.profiles.active=dev -Dserver.port=7040 -jar microservice-0.0.1-SNAPSHOT.jar -Dspring-boot.run.arguments= --hazelcast.port=12741 --APP_INSTANCE_NAME=microservice --APP_NAME=Microservice --APP_CLIENT_NAME='MicroserviceApp' --mainflux.broker=10.172.192.26 --APP_SWAGGER_TITLE='Microservice API' --APP_SWAGGER_DESC='Microservice API documentation'
    eureka:
      client:
        enabled: true
        healthcheck:
          enabled: true
        fetch-registry: true
        register-with-eureka: true
        instance-info-replication-interval-seconds: 10
        registry-fetch-interval-seconds: 10
      instance:
        appname: ${APP_INSTANCE_NAME:microservice}
        instanceId: ${APP_INSTANCE_NAME:microservice}:${spring.application.instance-id:${random.value}}
        lease-renewal-interval-in-seconds: 5
        lease-expiration-duration-in-seconds: 10
        status-page-url-path: ${management.endpoints.web.base-path}/info
        health-check-url-path: ${management.endpoints.web.base-path}/health
        metadata-map:
          zone: primary # This is needed for the load balancer
          profile: ${spring.profiles.active}
          version: #project.version#
          git-version: ${git.commit.id.describe:}
          git-commit: ${git.commit.id.abbrev:}
          git-branch: ${git.branch:}
...
...
...

Hazelcast MultiMap LocalEntryListener provides incorrect null values

copy iconCopydownload iconDownload
EntryListener<String, Integer> listener = new EntryListener<String, Integer>() {
@Override
public void entryAdded(EntryEvent<String, Integer> event) {
    System.out.println("******" + event);
}
@Override
public void entryRemoved(EntryEvent<String, Integer> event) {
    System.out.println("******" + event);
}
...
};
AbstractDistributedObject<MultiMapService> multiMapProxy = (AbstractDistributedObject) multiMap;
multiMapProxy.getService().addLocalListener("mymap", listener, null, true);

Payara Micro ignoring connection url in persistence.xml

copy iconCopydownload iconDownload
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
             xmlns="http://xmlns.jcp.org/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
    <persistence-unit name="com.danjbower_h2test_war_0.0.1PU"
                      transaction-type="JTA">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

        <jta-data-source>java:app/TestDb</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>

        <properties>
            <property name="hibernate.show_sql" value="true" />
            <property name="hibernate.format_sql" value="true" />
            <property name="hibernate.hbm2ddl.auto" value="update" />
            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
            <property name="hibernate.transaction.jta.platform" value="SunOne" />
        </properties>
    </persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Payara.fish//DTD Payara Server 4 Resource Definitions//EN" "https://raw.githubusercontent.com/payara/Payara-Community-Documentation/master/docs/modules/ROOT/pages/schemas/payara-resources_1_6.dtd">
<resources>
    <jdbc-resource pool-name="TestDb"
                   jndi-name="java:app/TestDb"
                   enabled="true" />

    <jdbc-connection-pool datasource-classname="org.h2.jdbcx.JdbcDataSource"
                          name="TestDb"
                          res-type="javax.sql.DataSource">
        <property name="URL" value="jdbc:h2:file:C:/databases/TestDb" />
        <property name="User" value="sa" />
        <property name="Password" value="" />
    </jdbc-connection-pool>
</resources>
<data-source>
    <name>java:app/TestDb</name>
    <class-name>org.h2.Driver</class-name>
    <url>jdbc:h2:file:C:/databases/TestDb</url>
    <user>sa</user>
    <password></password>
</data-source>
-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
             xmlns="http://xmlns.jcp.org/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
    <persistence-unit name="com.danjbower_h2test_war_0.0.1PU"
                      transaction-type="JTA">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

        <jta-data-source>java:app/TestDb</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>

        <properties>
            <property name="hibernate.show_sql" value="true" />
            <property name="hibernate.format_sql" value="true" />
            <property name="hibernate.hbm2ddl.auto" value="update" />
            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
            <property name="hibernate.transaction.jta.platform" value="SunOne" />
        </properties>
    </persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Payara.fish//DTD Payara Server 4 Resource Definitions//EN" "https://raw.githubusercontent.com/payara/Payara-Community-Documentation/master/docs/modules/ROOT/pages/schemas/payara-resources_1_6.dtd">
<resources>
    <jdbc-resource pool-name="TestDb"
                   jndi-name="java:app/TestDb"
                   enabled="true" />

    <jdbc-connection-pool datasource-classname="org.h2.jdbcx.JdbcDataSource"
                          name="TestDb"
                          res-type="javax.sql.DataSource">
        <property name="URL" value="jdbc:h2:file:C:/databases/TestDb" />
        <property name="User" value="sa" />
        <property name="Password" value="" />
    </jdbc-connection-pool>
</resources>
<data-source>
    <name>java:app/TestDb</name>
    <class-name>org.h2.Driver</class-name>
    <url>jdbc:h2:file:C:/databases/TestDb</url>
    <user>sa</user>
    <password></password>
</data-source>
-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
             xmlns="http://xmlns.jcp.org/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
    <persistence-unit name="com.danjbower_h2test_war_0.0.1PU"
                      transaction-type="JTA">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

        <jta-data-source>java:app/TestDb</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>

        <properties>
            <property name="hibernate.show_sql" value="true" />
            <property name="hibernate.format_sql" value="true" />
            <property name="hibernate.hbm2ddl.auto" value="update" />
            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
            <property name="hibernate.transaction.jta.platform" value="SunOne" />
        </properties>
    </persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Payara.fish//DTD Payara Server 4 Resource Definitions//EN" "https://raw.githubusercontent.com/payara/Payara-Community-Documentation/master/docs/modules/ROOT/pages/schemas/payara-resources_1_6.dtd">
<resources>
    <jdbc-resource pool-name="TestDb"
                   jndi-name="java:app/TestDb"
                   enabled="true" />

    <jdbc-connection-pool datasource-classname="org.h2.jdbcx.JdbcDataSource"
                          name="TestDb"
                          res-type="javax.sql.DataSource">
        <property name="URL" value="jdbc:h2:file:C:/databases/TestDb" />
        <property name="User" value="sa" />
        <property name="Password" value="" />
    </jdbc-connection-pool>
</resources>
<data-source>
    <name>java:app/TestDb</name>
    <class-name>org.h2.Driver</class-name>
    <url>jdbc:h2:file:C:/databases/TestDb</url>
    <user>sa</user>
    <password></password>
</data-source>

How to setup a distributed eventbus in a vertx Hazelcast Cluster?

copy iconCopydownload iconDownload
EventBusOptions eventBusOptions = new EventBusOptions()
  .setClustered(true)
  .setHost("10.10.1.160");

Community Discussions

Trending Discussions on hazelcast
  • Hazelcast enable rest-api
  • Spring Cloud Config behavior difference between docker-compose and Kubernetes
  • Non-blocking gets on Hazelcast ReplicatedMap?
  • Prevent JVM Shutdown while Hazelcast(Embedded) executor service thread is running
  • Hazelcast Change Data Capture with Postgres
  • How to cache session with IBM WebSphere Liberty on AWS?
  • Hazelcast Jet &quot;mapFn&quot; must be Serializable Error
  • Import issue with com.hazelcast.config.MaxSizeConfig
  • Hazelcast Predicate/ SQL query class not found
  • How to use Spring Aggregator in distributed environment?
Trending Discussions on hazelcast

QUESTION

Hazelcast enable rest-api

Asked 2022-Apr-05 at 07:56

I have hazelcast version 3.8.3. I want to enable rest api.

I wrote in the config:

ANSWER

Answered 2022-Apr-05 at 07:56

The rest-api section was added in 3.12, you're using 3.8.

An upgrade should sort it.

The latest Hazelcast 3 series is 3.12.9, but it's still old.

Current Hazelcast is Hazelcast 5. If you can upgrade, going to 5.1.1 would be better, the very latest (as of time of writing) -- even faster, more features, etc.

Source https://stackoverflow.com/questions/71747907

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install hazelcast

Follow the Getting Started Guide to install and start using Hazelcast.

Support

Read the documentation for in-depth details about how to install Hazelcast and an overview of the features.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.