hopsworks-cli

hopsworks-cli is a library and command-line tool for interacting with the Hopsworks REST API (www.hops.io). You can copy files into Hopsworks, run jobs, etc.

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

io.hops
Идентификатор

Идентификатор

hopsworks-cli
Последняя версия

Последняя версия

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

hopsworks-cli
hopsworks-cli is a library and command-line tool for interacting with the Hopsworks REST API (www.hops.io). You can copy files into Hopsworks, run jobs, etc.
Ссылка на сайт

Ссылка на сайт

https://github.com/hopshadoop/hopsworks-cli
Система контроля версий

Система контроля версий

https://github.com/hopshadoop/hopsworks-cli/tree/master

Скачать hopsworks-cli

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.hops/hopsworks-cli/ -->
<dependency>
    <groupId>io.hops</groupId>
    <artifactId>hopsworks-cli</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.hops/hopsworks-cli/
implementation 'io.hops:hopsworks-cli:0.2.0'
// https://jarcasting.com/artifacts/io.hops/hopsworks-cli/
implementation ("io.hops:hopsworks-cli:0.2.0")
'io.hops:hopsworks-cli:jar:0.2.0'
<dependency org="io.hops" name="hopsworks-cli" rev="0.2.0">
  <artifact name="hopsworks-cli" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.hops', module='hopsworks-cli', version='0.2.0')
)
libraryDependencies += "io.hops" % "hopsworks-cli" % "0.2.0"
[io.hops/hopsworks-cli "0.2.0"]

Зависимости

compile (11)

Идентификатор библиотеки Тип Версия
org.apache.commons : commons-lang3 jar 3.8.1
org.glassfish : javax.json jar 1.1.2
javax.json : javax.json-api jar 1.1.2
org.apache.hadoop : hadoop-client jar 2.8.4
commons-io : commons-io jar 1.3.2
org.slf4j : slf4j-api jar 1.7.25
ch.qos.logback : logback-classic jar 1.2.3
ch.qos.logback : logback-core jar 1.2.3
org.apache.httpcomponents : httpclient jar 4.5.8
org.apache.httpcomponents : httpmime jar 4.5
com.beust : jcommander jar 1.72

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Maven Central

Hopsworks CLI

A command-line client, written in Java, that uses the Hopsworks REST API for Job execution and file uploading.

Maven dependency

<dependency>
  <groupId>io.hops</groupId>
  <artifactId>hopsworks-cli</artifactId>
  <version>0.1</version>
</dependency>

Configuration

You can either edit the conf/hops.properties file or set environment variables: HOPSWORKS_USER HOPSWORKS_PASSWORD HOPSWORKS_ENDPOINT=http://:/hopsworks HOPSWORKS_PROJECT=projectname

Command-line Utility

For help on using the command-line utility: ./hops-cli --help

Usage as a Library

The output library is a shaded jar file. You can include it

Running a job with hopsworks-cli

You need to follow a number of steps to run a job. First, you need to get the projectId from the project name, then copy your .jar or .py file into the project, then create a Job configuration and create the Job (if it doesn't already exist) in Hopsworks, then run the job, and finally download the job logs.

  1. ProjectService. @Path("/getProjectInfo/{projectName}") name -> project_id Use ProjectService REST API

  2. Copy filename to the /hopsworks-api/api//dataset/upload/ Use DatasetService REST API

  3. Run Job with JobServer REST API Return application_attempt_id and jobId

  4. Download Logs with application_attempt_id

Acknowledgement

This work was developed as part of the Streamline EU Project and it builds on earlier work done in the Aegis project: https://github.com/aegisbigdata/hopsworks-data-connector https://www.aegis-bigdata.eu/

io.hops

Hops Hadoop

Hadoop Open Platform-as-a-Service

Версии библиотеки

Версия
0.2.0
0.1
0.0.1