Microsoft Azure Kusto Library for Java
Перейти к файлу
Yihezkel Schoenbrun 438ec1397f
Quickstart Application (#195)
* Initial commit.
The intent is to review this in its current feature-complete state, so I can also commit the equivalent changes in the Python SDK.
Then, in the next PR (or before merging this PR), I will make some additional improvements as discussed, including break main into individual methods and refactor this "query-ingest-query" approach into an additional "query-only" mode.

* Remove comment

* Optimize if/else

* Minor verbiage changes

* Minor verbiage changes

* Minor verbiage changes

* Update README.md

Co-authored-by: Yochai Gilad <yogilad@microsoft.com>

* - Break main up into methods
- Consider new parameters
- Few code review changes, like consistent periods at end of sentences and filename consistency with Python

* Only alter batching policy if !useExistingTable

* - Pass filesize of 0 for autodetection
- Do not create a File object to get its path; just pass along the provided path
- Move alterBatchingPolicy to within createNewTable, and wrap it in if(false) so it won't run
- Add comment explaining that we generally wouldn't print the output of a control command

* - Improve README text
- Change .alter command to .alter-merge command

* - Change filename kusto-sample-config.json to kusto_sample_config.json to be consistent with Python

* - Fix reference to Python
- Aad a comment for AppCertificate auth

Co-authored-by: Yochai Gilad <yogilad@microsoft.com>
2021-12-05 10:39:22 +02:00
.github Updated surefire version to make tests run (#197) 2021-12-05 09:50:49 +02:00
data Updated surefire version to make tests run (#197) 2021-12-05 09:50:49 +02:00
ingest Quickstart Application (#195) 2021-12-05 10:39:22 +02:00
quickstart Quickstart Application (#195) 2021-12-05 10:39:22 +02:00
samples Fix time out as timestamp (#185) 2021-10-15 13:39:28 +03:00
.gitignore Flatten POMs (#77) 2019-03-11 23:21:22 +02:00
.travis.yml Add Travis-CI (#26) 2018-09-27 15:56:11 +03:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#126) 2020-04-01 11:09:19 +03:00
LICENSE Initial commit 2018-08-08 06:48:42 -07:00
README.md Quickstart Application (#195) 2021-12-05 10:39:22 +02:00
pom.xml Quickstart Application (#195) 2021-12-05 10:39:22 +02:00

README.md

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:

<dependency>
    <groupId>com.microsoft.azure.kusto</groupId>
    <artifactId>kusto-ingest</artifactId>
    <version>2.1.2</version>
</dependency>

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

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 opencode@microsoft.com with any additional questions or comments.