NDBI040: Big Data Management and NoSQL Databases. h p://

Similar documents
NDBI040: Big Data Management and NoSQL Databases. h p:// svoboda/courses/ ndbi040/

Key-Value Stores: RiakKV

NDBI040: Big Data Management and NoSQL Databases

Key-Value Stores: RiakKV

Key-Value Stores: RiakKV

h p://

Column-Family Stores: Cassandra

h p://

Document Stores: MongoDB

B4M36DS2, BE4M36DS2: Database Systems 2

h p://

Column-Family Stores: Cassandra

Dr. Chuck Cartledge. 14 Sept. 2015

MapReduce, Apache Hadoop

SQL: Advanced Constructs

B0B36DBS, BD6B36DBS: Database Systems

h p://

Harnessing Publicly Available Factual Data in the Analytical Process

Document Databases: MongoDB

REST Services. Zaenal Akbar

ARTICLE EXTRACTOR. Manual. Page 1 of 8. Manual. Tel & Fax: Web:

The Browser Binding with a CMIS Repository

In Workflow. Viewing: Last edit: 11/04/14 4:01 pm. Approval Path. Programs referencing this course. Submi er: Proposing College/School: Department:

Search Engines and Time Series Databases

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #7: En-ty/Rela-onal Model---Part 3

Revision Control II. - svn

Bitnami Apache Solr for Huawei Enterprise Cloud

Physician Reference Guide Paragon Clinician Hub Version 13.0

What am I? Bryan Hunt Basho Client Services Engineer Erlang neophyte JVM refugee Be gentle

Riak. Distributed, replicated, highly available

Delving Deep into Hadoop Course Contents Introduction to Hadoop and Architecture

Oracle Cloud IaaS: Compute and Storage Fundamentals

Inter-agency Mee-ng on Prepara-on for the 2018 SDG Reports 28 Feb 01 Mar Agenda item 6: Review of data/metadata inputs for the database (UNSD)

#IoT #BigData. 10/31/14

CISC 7610 Lecture 4 Approaches to multimedia databases. Topics: Document databases Graph databases Metadata Column databases

Geometric verifica-on of matching

API v2. Conventions. Security Parameters. Collections. HTTP codes. Security Roles. Docs» API v2

Variable Usage, Making HTTP requests, Excep:ons

How to reduce fric-on and transac-on costs in intellectual property management for free and open source projects?

Nasuni Data API Nasuni Corporation Boston, MA

Search and Time Series Databases

DIRECT SUPPLIER P RTAL INSTRUCTIONS

Networking for Wide Format Printers

Archer Documentation. Release 0.1. Praekelt Dev

Nasuni Data API Nasuni Corporation Boston, MA

Putting together the platform: Riak, Redis, Solr and Spark. Bryan Hunt

LucidWorks: Searching with curl October 1, 2012

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Technical Note. Isilon OneFS. Isilon Swift Technical Note. Version August 2017

REST Web Services Objektumorientált szoftvertervezés Object-oriented software design

Capabilities of Cloudant NoSQL Database IBM Corporation

Amazon Elasticsearch Service

Advanced Databases ( CIS 6930) Fall Instructor: Dr. Markus Schneider. Group 17 Anirudh Sarma Bhaskara Sreeharsha Poluru Ameya Devbhankar

MyCouncil. Accredita on Management System Informa on and Naviga on Guide

1 Big Data Hadoop. 1. Introduction About this Course About Big Data Course Logistics Introductions

Introduction to NoSQL Databases

ExtraHop 7.3 ExtraHop Trace REST API Guide

IP-9000 IP Network Audio System. Features:

Introduction to Big Data. NoSQL Databases. Instituto Politécnico de Tomar. Ricardo Campos

SQLSplitter v Date:

Aim behind client server architecture Characteristics of client and server Types of architectures

Study of NoSQL Database Along With Security Comparison

Exploring the Nuxeo REST API

Google Cloud Platform for Systems Operations Professionals (CPO200) Course Agenda

BW 2050 Manual. Weltech Interna onal Limited INTRODUCTION

Bitnami JRuby for Huawei Enterprise Cloud

Course Content MongoDB

EPL660: Information Retrieval and Search Engines Lab 3

Transforming Data from into DataPile RDF Structure into RDF

Special Topic: Automated Report Recipients 5. Crea ng a New Region 6 Adding Districts to Regions 8

Internet of Things Big Data Cloud Computing

Distributed Non-Relational Databases. Pelle Jakovits

REST. And now for something completely different. Mike amundsen.com

MEAN Stack. 1. Introduction. 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts

CONTRACTOR IS ACTING UNDER A FRAMEWORK CONTRACT CONCLUDED WITH THE COMMISSION

NetScaler Automa.on USING PUPPET TO TALK NITRO

Automate Your Workflow Using Tableau Server Client and the REST API

MarkLogic Server. REST Application Developer s Guide. MarkLogic 9 May, Copyright 2017 MarkLogic Corporation. All rights reserved.

MapReduce, Apache Hadoop

Informatica Enterprise Data Catalog REST API Reference

Tenable.io Container Security REST API. Last Revised: June 08, 2017

Chapter 24 NOSQL Databases and Big Data Storage Systems

WEB TEACHER GUIDE. ebackpack provides a separate Student Guide through our support site at

Non-Relational Databases. Pelle Jakovits

Persistence. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Why NoSQL? Why Riak?

f5-icontrol-rest Documentation

The Opal Toolkit. Wrapping Scientific Applications as Web Services

Python, PySpark and Riak TS. Stephen Etheridge Lead Solution Architect, EMEA

Dr. Chuck Cartledge. 5 Nov. 2015

RESTful Services. Distributed Enabling Platform

CS321: Computer Networks FTP, TELNET, SSH

Jargons, Concepts, Scope and Systems. Key Value Stores, Document Stores, Extensible Record Stores. Overview of different scalable relational systems

In this brief tutorial, we will be explaining the basics of Elasticsearch and its features.

DEMYSTIFYING BIG DATA WITH RIAK USE CASES. Martin Schneider Basho Technologies!

MI-PDB, MIE-PDB: Advanced Database Systems

BT SIP Trunk CRF User Guide - BT Sales / Originator + Specialist

Universiteit Leiden ICT Shared Service Centre 8 February Before you start with the instructions below, make sure:

MySQL for Developers Ed 3

Julia Eclipse Plugin User Manual Table of Contents

Transcription:

NDBI040: Big Data Management and NoSQL Databases h p://www.ksi.mff.cuni.cz/~svoboda/courses/171-ndbi040/ Prac cal Class 5 Riak Mar n Svoboda svoboda@ksi.mff.cuni.cz 13. 11. 2017 Charles University in Prague, Faculty of Mathema cs and Physics Czech Technical University in Prague, Faculty of Electrical Engineering

Riak Overview RiakKV Highly available distributed key-value store h p://basho.com/products/riak-kv/ Data model Instance ( bucket types) buckets objects Bucket = logical collec on of objects Object = key-value pair with metadata Key is a Unicode string, unique within a bucket Value can be anything (text, binary object, image, ) Each object is also associated with metadata NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 2

CRUD Opera ons HTTP API All the user requests are submi ed as HTTP requests with appropriately selected / constructed methods, URLs, headers, and data URL pa ern of HTTP requests for all the CRUD opera ons / buckets / bucket / keys / key? parameter = value & Op onal parameters (depending on the opera on) NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 3

CRUD Opera ons Basic opera ons on objects Create: or methods Inserts a key-value pair into a given bucket Key is specified manually, or will be generated automa cally Read: method Retrieves a key-value pair from a given bucket Update: method Updates a key-value pair in a given bucket Delete: method Removes a key-value pair from a given bucket NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 4

HTTP API curl tool Allows to transfer data from / to a server using HTTP (or other supported protocols) Op ons, HTTP request method to be used (GET, ), Data to be sent to the server (implies the POST method), Extra headers to be included when sending the request, Prints both headers and (not just) body of a response NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 5

First Steps Remotely connect to our NoSQL server SSH and SFTP access PuTTY and WinSCP on Windows nosql.ms.mff.cuni.cz:42222 Check Riak cluster status And with higher permissions NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 6

Read and Write Opera ons Insert object for a new actor Prefix all the bucket names with your Retrieve the previously inserted actor Examine both response body and headers NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 7

Bucket Opera ons List all the buckets Only buckets with at least one object will be included List all the keys in the bucket of actors Note that this opera on cannot be executed efficiently NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 8

Update and Delete Opera ons Update our actor object Check the updated actor object Use different virtual nodes as well,, Remove the actor object NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 9

Sample Data Insert objects for new actors Put the data into bucket Use content type NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 10

Sample Data Insert objects for new movies Put the data into bucket Use content type once again NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 11

Links and Link Walking Links = directed rela onships between objects / buckets / bucket / keys / key / bucket _, tag _, 1 0 _ / Parameters assumes only a given target bucket considers only a given link tag whether the objects should be included in the result NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 12

Links and Link Walking Create new links actor movie Check the updated actor object Verify the presence of links in par cular Traverse the links from the actor NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 13

Links and Link Walking Add all the links movie actor Express a more complicated link walking query Find all the actors that appeared in movies where Trojan stared NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 14

Search 2.0: Yokozuna Create a full-text index for the bucket of actors Verify the new bucket proper es NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 15

Search 2.0: Yokozuna Reinsert objects for all the actors Note that names of fields were changed Suffixes recognizable by the JSON extractor were added Czech accented characters were removed NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 16

Search 2.0: Yokozuna Find all the actors born in 1964 Express a more complicated full-text query Find all the actors who were born in 1960 or later and their name contains substring de NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 17

References Riak documenta on h p://docs.basho.com/riak/kv/2.1.4/ Search queries (Apache Solr query syntax) h p://docs.basho.com/riak/kv/2.1.4/ developing/usage/search/ h ps://lucene.apache.org/solr/guide/6_6/ the-standard-query-parser.html NDBI040: Big Data Management and NoSQL Databases Prac cal Class 5: Riak 13. 11. 2017 18