Skip to content

Utility to enable import of data into Riak with Protocol Buffers and Elixir based application modules

License

Notifications You must be signed in to change notification settings

jbsmith/import_riak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import_riak

Utility to enable import of data into Riak using Elixir based application modules

This is a project built with Elixir

Prerequisites

Install Elixir and Erlang

Clone this repo from github

Prepare the ENV vars using export RECOMMENDED

export ELIXIR_ERL_OPTS='+S 2 +P 134217727'

Prepare the dependencies REQUIRED

mix deps.get

Prepare the command line binary RECOMMENDED

mix escriptize

OR Just compile the modules for use with iex RECOMMENDED

mix compile
iex -S mix
>

Examples of command line usage with the compiled binary 'import' from 'mix escriptize'

./import PATH_TO_DATA/data.csv 127.0.0.1:8097 4 0 10 20
./import PATH_TO_DATA/data.csv 127.0.0.1:8097 10 1000 1000 0		# import the file with 10 pocesses starting at line 1000 for 1000 lines as fast as possible (0)
./import PATH_TO_DATA/data.csv                  # just import the whole file as fast as possible defaults to using 4 processes to riak at 127.0.0.1:8097
./import PATH_TO_DATA/data.csv 127.0.0.1:8097 20 0 100000000 256
./import PATH_TO_DATA/data.csv 127.0.0.1:8097 1 4 30 1

HELP at the command line

./import 

Prepare the documentation RECOMMENDED

this will generate the docs into /docs path

mix docs

=======

About

Utility to enable import of data into Riak with Protocol Buffers and Elixir based application modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages