Code Monkey home page Code Monkey logo

java-rbroker-framework's Introduction

Java RBroker Framework for DeployR

The Java RBroker Framework provides a simple yet powerful API that supports the rapid integration of R Analytics inside any Java application. Simply define an RTask, submit your task to an instance of RBroker and be notified when your RTaskResult is available.

The framework scales effortlessly to support simple integrations through sophisticated solutions such as high throughput, realtime scoring engines.

Links

Dependencies

Declarative JAR Dependencies: Maven Central Repository Artifacts

Artifacts for each official release (since 7.3.0) of the DeployR Java RBroker Framework are published to the Maven Central repository.

ArtifactId: jRBroker

Using build frameworks such as Maven and Gradle your Java client application can simply declare a dependency on the appropriate version of the jRBroker artifact to ensure all required JAR dependencies are resolved and available at runtime.

Bundled JAR Dependencies

If you are not defining your DeployR RBroker Framework JAR dependencies using declarative tools then you must ensure the required JAR files are placed directly on your application CLASSPATH.

Besides the DeployR Java RBroker Framework JAR itself, jRBroker-<version>.jar, the framework depends on the DeployR Java Client Library and all of it's third party JAR dependencies.

Building the Java RBroker Framework

A Gradle build script is provided to build the DeployR Java RBroker Framework:

build.gradle

By default, the build will generate a version of the jRBroker-<version>.jar file in the build/libs directory.

You do not need to install Gradle before running these commands. To build the DeployR Java RBroker Framework a Unix based OS, run the following shell script:

gradlew build

To build the DeployR Java RBroker Framework on a Windows based OS, run the following batch file:

gradlew.bat build

Examples

The DeployR Java RBroker Framework ships with a number of sample applications provided to demonstrate some of the key featues introduced by the Quick Start Tutorial for the Java client library. See here for details.

The DeployR Java RBroker Framework also ships with a set of unit tests. See here for details.

License

Copyright (C) 2010-2016, Microsoft Corporation

This program is licensed to you under the terms of Version 2.0 of the Apache License. This program is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) for more details.

java-rbroker-framework's People

Contributors

david-russell avatar microsoft-github-policy-service[bot] avatar swells avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-rbroker-framework's Issues

The "hello world" example does not seem to work

Hi,
I have taken the tutorial example and run it against our local installation.

Basically,
RAuthentication rauth = new RBasicAuthentication("xxxxxxx", "xxxxxx"); DiscreteBrokerConfig brokerCfg = new DiscreteBrokerConfig("XXXXXXXX", rauth); RBroker rBroker = RBrokerFactory.discreteTaskBroker(brokerCfg); DiscreteTaskOptions taskOptions = new DiscreteTaskOptions(); RTask rTask = RTaskFactory.discreteTask("DeployR - ReadCSV.R", "root", "testuser", "Latest", taskOptions); RTaskToken rTaskToken = rBroker.submit(rTask); RTaskResult rTaskResult = rTaskToken.getResult();

However, I get the following exception which incidentally is caused on a logging statement.

This should be basic stuff but is not working. Any ideas?

2016-08-26 09:48:43 WARN AbstractCall:181 - AbstractCall: makeRequest io exception=org.apache.http.client.ClientProtocolException
Exception in thread "main" com.revo.deployr.client.RClientException
at com.revo.deployr.client.core.impl.RClientImpl.processCall(RClientImpl.java:547)
at com.revo.deployr.client.core.impl.RClientImpl.login(RClientImpl.java:215)
at com.revo.deployr.client.core.impl.RClientImpl.login(RClientImpl.java:201)
at com.revo.deployr.client.broker.engine.DiscreteTaskBroker.(DiscreteTaskBroker.java:50)
at com.revo.deployr.client.factory.RBrokerFactory.discreteTaskBroker(RBrokerFactory.java:55)
at com.kpmg.dra.r.RBrokerTest.main(RBrokerTest.java:32)
Caused by: java.lang.NullPointerException
at com.revo.deployr.client.core.impl.RClientImpl.processCall(RClientImpl.java:521)
... 5 more

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.