run AS7 domain with full-ha hosts
$ cd build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT
modify domain/configuration/host.xml so that the other-server-group is using the full-ha profile
/** | |
* Setup Module with `highlight` filter | |
*/ | |
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) { | |
$locationProvider.html5Mode(false); | |
}); | |
JekyllApp.filter('highlight', function () { | |
return function (text, filter) { |
en: | |
errors: | |
messages: | |
wrong_content_type: "is the wrong content type" |
#!/bin/bash -ex | |
# Git bootstrap | |
sudo apt-get update | |
sudo apt-get install -y git-core | |
# Nise BOSH | |
git clone https://github.com/nttlabs/nise_bosh.git | |
( | |
cd nise_bosh |
# Installing CDH4 on a Single Linux Node in Pseudo-distributed Mode | |
# https://ccp.cloudera.com/display/CDH4DOC/Installing+CDH4+on+a+Single+Linux+Node+in+Pseudo-distributed+Mode | |
# Installing CDH4 with MRv1 on a Single Linux Node in Pseudo-distributed mode | |
# On Ubuntu and other Debian systems | |
nipra@lambda:Downloads$ wget -cv http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb | |
nipra@lambda:Downloads$ sudo dpkg -i cdh4-repository_1.0_all.deb # Adds /etc/apt/sources.list.d/cloudera-cdh4.list ?? | |
nipra@lambda:Downloads$ dpkg -L cdh4-repository # To view the files on Ubuntu systems | |
# Install CDH4 |
bash-3.2$ elastic-mapreduce --create --name "Sample Recommender" \ | |
> --jar s3n://temp.cascading.org/sample/recommender.jar \ | |
> --arg s3n://temp.cascading.org/sample/en.stop \ | |
> --arg s3n://temp.cascading.org/sample/tweets/ \ | |
> --arg s3n://temp.cascading.org/sample/out/token \ | |
> --arg s3n://temp.cascading.org/sample/out/similarity | |
Created job flow j-2HA2BVCBJGMVX | |
bash-3.2$ elastic-mapreduce --list | |
j-2HA2BVCBJGMVX STARTING Sample Recommender | |
PENDING Example Jar Step |
public static void assertResponseCodeIs | |
( final HttpResponse response, final int expectedCode ){ | |
final int statusCode = httpResponse.getStatusLine().getStatusCode(); | |
assertEquals( expectedCode, statusCode ); | |
} |
run AS7 domain with full-ha hosts
$ cd build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT
modify domain/configuration/host.xml so that the other-server-group is using the full-ha profile
#!/usr/bin/env ruby | |
require 'java' | |
require 'scala-library.jar' | |
require 'config-1.0.0.jar' | |
require 'akka-actor_2.10-2.1.0.jar' | |
java_import 'java.io.Serializable' | |
java_import 'akka.actor.UntypedActor' | |
java_import 'akka.actor.ActorRef' |
public class Hello extends RObject { | |
public Hello() { | |
RObject __last = RNil; | |
} | |
public RObject hello_world() { | |
RObject __last = RNil; | |
__last = puts(new RFixnum(1)._plus_(new RFixnum(1))); | |
__last = puts(new RString("Hello, world")); | |
return __last; |