Images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import json | |
import requests | |
import re | |
import sys | |
# Read log | |
def tail(f): | |
f.seek(0, 2) | |
while True: |
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
The workshop is located in Github:
Clone the repository, or download the zip file.
All the instructions, and pre-requisites are located in the Read me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import com.mapr.db.MapRDB; | |
import com.mapr.db.Table; | |
import org.ojai.Document; | |
import javax.print.Doc; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
) | |
type City struct { |
#Simple MongoDB Security Tutorial
###1 - Start mongod without any "security option"
$ mongod --port 27017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.mongodb.*; | |
/** | |
* Created by tgrall on 8/27/14. | |
*/ | |
public class TestApp { | |
public static void main(String[] args) throws Exception { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.couchbase.devday; | |
import com.couchbase.client.CouchbaseClient; | |
import com.couchbase.client.protocol.views.*; | |
import java.net.URI; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Properties; | |
import java.util.concurrent.TimeUnit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.couchbase.devday; | |
import com.couchbase.client.CouchbaseClient; | |
import net.spy.memcached.internal.OperationFuture; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.UUID; |
NewerOlder