Hivemall

Apache Hivemall (https://hivemall.incubator.apache.org/) is a collection of Hive UDFs for machine learning. It contains a number of ML algorithm implementations across classification, regression, recommendations, loss functions, and feature engineering, all as UDFs. This allows end users to use SQL and only SQL to apply machine learning algorithms to a large volume of training data. Perform the following steps to set it up:

  1. Download Hivemall from https://hivemall.incubator.apache.org/download.html and put it into HDFS:
      $ hdfs fs -mkdir -p /apps/hivemall
$ hdfs fs -put hivemall-all-xxx.jar /apps/hivemall
  1. Create permanent functions using script here (https://github.com/apache/incubator-hivemall/blob/master/resources/ddl/define-all-as-permanent.hive):
      > CREATE DATABASE IF NOT EXISTS hivemall; -- create a db for the 
udfs
> USE hivemall;
> SET hivevar:hivemall_jar=
> hdfs:///apps/hivemall/hivemall-all-xxx.jar;

> SOURCE define-all-as-permanent.hive;
  1. Verify the functions are created:
      > SHOW functions "hivemall.*";
hivemall.adadelta
hivemall.adagrad
...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.154.252