Skip to content

Instantly share code, notes, and snippets.

View supr's full-sized avatar

supr

  • C|^_^|Ɔ
  • GU HQ, 21 Faro System.
View GitHub Profile
[root@ip-10-196-18-178 ~]# yum install mapr-hive-0.12
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: mirror.hmc.edu
* epel: linux.mirrors.es.net
* extras: mirror.hmc.edu
* updates: mirrors.centarra.com
Setting up Install Process
No package mapr-hive-0.12 available.
Error: Nothing to do
@supr
supr / test.json
Created June 23, 2014 17:50
test.json
{
"variables": {
"mapr_version": "3.1.1"
},
"builders": [
{
"name" : "sandbox-partner",
"vm_name" : "MapR-Sandbox-For-Hadoop-Partner-{{ user `mapr_version` }}",
"type" : "virtualbox-ovf",
"source_path" : "output-sandbox/MapR-Sandbox-Base-For-Hadoop-{{ user `mapr_version` }}.ova",
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
1. You have an upgrade for libselinux which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libselinux of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
@supr
supr / gist:ef4c4377c24e57508cd7
Created May 9, 2014 02:09
C++11 Algorithm example
/*
C++11 Algorithm example
Compile: clang++ -std=c++11 -static this.cc
*/
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
int numbers[] = {1, 2, 42, 7, 0};
.encoding = "UTF-8"
displayname = "MapR-Sandbox-For-Hadoop-3.0.3"
guestos = "rhel6-64"
virtualhw.version = "8"
config.version = "8"
numvcpus = "2"
cpuid.coresPerSocket = "1"
memsize = "6144"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
#include <iostream>
#include <cstdlib>
int num_bits2(long n) {
int i = 0;
for(i = 0; n; i++)
n &= n - 1;
return i;
}
@supr
supr / audit.log
Created January 20, 2014 01:30
Fedora 20 docker. After running docker run -i -t centos /bin/bash
type=ANOM_PROMISCUOUS msg=audit(1390181243.529:735): dev=vethDvSeyL prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
type=SYSCALL msg=audit(1390181243.529:735): arch=c000003e syscall=16 success=yes exit=0 a0=a a1=89a2 a2=7fff4caa1640 a3=7fff4caa1460 items=0 ppid=1806 pid=1935 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=pts3 comm="lxc-start" exe="/usr/bin/lxc-start" subj=system_u:system_r:docker_t:s0 key=(null)
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=filter family=2 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=raw family=2 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=security family=2 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=mangle family=2 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=nat family=2 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=filter family=10 entries=0
type=NETFILTER_CFG msg=audit(1390181243.530:736): table=raw
@supr
supr / bash.sh
Created January 7, 2014 03:11
rust compile error
cp: x86_64-unknown-linux-gnu/stage1/lib/libstd.so
/home/prudhvi/code/rust/src/libnative/lib.rs:1:0: 1:0 error: can't find crate for `std`
/home/prudhvi/code/rust/src/libnative/lib.rs:1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
^
task 'rustc' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/libsyntax/diagnostic.rs:76
task '<main>' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/librustc/lib.rs:441
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libnative.so] Error 101
make: *** Waiting for unfinished jobs....
/home/prudhvi/code/rust/src/libgreen/lib.rs:1:0: 1:0 error: can't find crate for `std`
/home/prudhvi/code/rust/src/libgreen/lib.rs:1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
@supr
supr / out.txt
Created November 15, 2013 22:53
[info] Updating {file:/home/prudhvi/code/Loki/}loki...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 24 Scala sources and 4 Java sources to /home/prudhvi/code/Loki/target/scala-2.10/classes...
[warn] /home/prudhvi/code/Loki/src/main/scala/com/memeo/loki/JavascriptAdapters.scala:19: imported `api' is permanently hidden by definition of package api in package loki
[warn] import com.memeo.loki.api
[warn] ^
[error] /home/prudhvi/code/Loki/src/main/scala/com/memeo/loki/MapReduceActor.scala:34: Cannot find an implicit ExecutionContext, either require one yourself or import ExecutionContext.Implicits.global
[error] context.system.scheduler.scheduleOnce(timeout) {
[error] ^
@supr
supr / build.sbt
Created November 15, 2013 22:07
Loki SBT
name := "Loki"
version := "0.0.1-SNAPSHOT"
scalaVersion := "2.10.0"
resolvers ++= Seq(
"Oracle Released Java Packages" at "http://download.oracle.com/maven",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)