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 ...

Get Apache Hive Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.