Skip to content

Instantly share code, notes, and snippets.

@tgrall
Created October 17, 2017 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgrall/cf3a0d08274b2020db2ac279f677afe1 to your computer and use it in GitHub Desktop.
Save tgrall/cf3a0d08274b2020db2ac279f677afe1 to your computer and use it in GitHub Desktop.
6.0 Labs

Lab 1

  • select customer_id from dfs.root.`/user/mapr/product_sales` where customer_id=1288034;

  • Open another terminal and create the following indices

maprcli table index add -path /user/mapr/product_sales -index index_customer_id -indexedfields '"customer_id"'

maprcli table index list -path /user/mapr/product_sales -json
  • select customer_id from dfs.root.`/user/mapr/product_sales` where customer_id > 1288034 and customer_id<=1288037 order by customer_id;

  • select customer_id from dfs.root.`/user/mapr/product_sales` where customer_id > 1288034 and customer_id<=1288037 order by customer_id desc;

  • select customer_id from dfs.root.`/user/mapr/product_sales` where customer_id between 1288036 and 1288039;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment