Coder Social home page Coder Social logo

azure-kusto-java's Introduction

Microsoft Azure Kusto (Azure Data Explorer) SDK for Java

Released Version

master: Build status Github Actions Build

This is the Microsoft Azure Kusto client library which allows communication with Kusto to bring data in (ingest) and query information already stored in the database. This library contains 3 different modules:

  • data: The main client that allows interaction with Kusto, including creating a connection, issuing (control) commands and querying data
  • ingest: Provides an easy way to bring data into Kusto
  • quickstart: Self-contained, configurable and runnable sample app for easily getting started with the SDK
  • samples: Sample code implementing various scenarios

Install

Maven

This method is the easiest to follow, just add the following dependency to your pom.xml (with the right version tag from maven central):

<dependency>
    <groupId>com.microsoft.azure.kusto</groupId>
    <artifactId>kusto-ingest</artifactId>
    <version>[see badge below]</version>
</dependency>

Maven Central

Clone

Download the source code, compile and install locally.

One way to do this is by using maven like in the following example:

git clone git://github.com/Azure/azure-kusto-java.git
cd azure-kusto-java
mvn install

Prerequisites

  • A Java Developer Kit (JDK), version 1.8 or later
  • Maven

Samples

Using A Proxy

The SDK includes support for the built-in proxy system properties in java. For example, when the address of your proxy server is 1.2.3.4:8989, you can run:
java -ea -Dhttp.proxyHost=1.2.34 -Dhttp.proxyPort=8989 -Dhttps.proxyHost=1.2.3.4 -Dhttps.proxyPort=8989
And the SDK will know to use these values automatically.

Alternatively, you can define a proxy programmatically when creating a client, using HttpClientProperties:

HttpClientProperties httpClientProperties = HttpClientProperties.builder()
        .proxy(new HttpHost("1.2.3.4", 8989))
        .build();

Client = ClientFactory.createClient(<engine_connection_string>, httpClientProperties); 
// Or for DM:
IngestClient ingestClient = IngestClientFactory.createClient(<dm_connection_string>, httpClientProperties)

Best Practices

See the SDK best practices guide, which though written for the .NET SDK, applies similarly here.

Need Support?

  • Have a feature request for SDKs? Please post it on User Voice to help us prioritize
  • Have a technical question? Ask on Stack Overflow with tag "azure-data-explorer"
  • Need Support? Every customer with an active Azure subscription has access to support with guaranteed response time. Consider submitting a ticket and get assistance from Microsoft support team
  • Found a bug? Please help us fix it by thoroughly documenting it and filing an issue.

Looking for SDKs for other languages/platforms?

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Formatting

The code in this project is formatted using formatter-maven-plugin.
Code that isn't formatted will not be accepted.

To format your code, run the following command:
mvn formatter:format

It is also recommended importing the format file kusto-style.xml into your editor (the file is in the eclipse xml format).

azure-kusto-java's People

Contributors

abestel avatar ag-ramachandran avatar alonadam avatar amshalev avatar arielyehezkely avatar asafmah avatar breriksenms avatar crowcrow avatar i3arnon avatar jlinn avatar larisaad avatar lizashak avatar maltalex avatar microsoftopensource avatar msftgits avatar ohadbitt avatar ohbitton avatar rabee333 avatar riddy avatar rjdkolb avatar ronmonetamicro avatar spektom avatar tamirkamara avatar toshetah avatar vladikbr avatar yihezkel avatar yogilad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.