DevTech101

DevTech101

NoSQL

Installing Oracle NoSQL On An Oracle BDA

Create configuration on every node makebootconfig.sh java -jar $KVHOME/lib/kvstore.jar makebootconfig \ -root /home/oracle/kvroot \ -port 5000 \ -admin 5001 \ -host n01 \ -harange 5010,5025 \ -num_cpus 12 \ -memory_mb 2096 \ -store-security none \ -capacity 12 \ -storagedir /u01/nosql/data \ -storagedir /u02/nosql/data \ -storagedir /u03/nosql/data \ -storagedir /u04/nosql/data \ -storagedir /u05/nosql/data \ -storagedir /u06/nosql/data …

Installing Oracle NoSQL On An Oracle BDA Read More »

NodeJS and mongoose

npm install mongoose app.js var express = require(‘express’); var os = require(‘os’); // Mongoose import var mongoose = require(‘mongoose’); // Mongoose connection to MongoDB (ted/ted is readonly) mongoose.connect(‘mongodb://127.0.0.1/users’, function (error) { if (error) { console.log(error); } }); // Mongoose Schema definition var Schema = mongoose.Schema; var UserSchema = new Schema({ hostname: String, loadavrg: String, totalmem: …

NodeJS and mongoose Read More »

Using NodeJS With MongoDB

Configuring MongoDB First test and connect to mongo From connect line > use mcfly switched to db mcfly > db.createCollection(‘mathpeeps’) { “ok” : 1 } > db.mathpeeps.insert({Firstname: ‘Eli’, lastname: ‘Kleinman’}) WriteResult({ “nInserted” : 1 }) > db.mathpeeps.insert({Firstname: ‘Moshe’, lastname: ‘Kleinman’}) WriteResult({ “nInserted” : 1 }) > db.mathpeeps.find() { “_id” : ObjectId(“55ce19e7737e49e3a5a7553e”), “Firstname” : “Eli”, “lastname” …

Using NodeJS With MongoDB Read More »

Installing, Configuring Cassandra DataStax Enterprise Version

Process to install and Configure a 3 Node Cassandra Cluster Casandra Ports and layouts 7199 – JMX (was 8080 pre Cassandra 0.8.xx) 7000 – Internode communication (not used if TLS enabled) 7001 – TLS Internode communication (used if TLS enabled) 9160 – Thrift client API 9042 – CQL native transport port Source Installing Casandra First …

Installing, Configuring Cassandra DataStax Enterprise Version Read More »