Skip to content

Instantly share code, notes, and snippets.

@keith-turner
keith-turner / instructions.md
Last active Jul 13, 2020
Notes from running Accumulo 2.0.0-alpha-2 on S3
View instructions.md

WIP Instructions for running Accumulo 2.0.0-alpha-2 in S3

Newer instructions for Accumulo 2.0.0 are available

Running on S3 requires a new feature in Accumulo 2.0. Accumulo has a pluggable volume chooser that tells Accumulo which URL a new file should be placed on. In 2.0 this volume chooser was updated to be aware of write ahead logs. Before 2.0 when the volume chooser was asked where it should put a file, it did not know if the request was for a write ahead log. In 2.0 it knows this, which allows write ahead logs to be placed on HDFS and table files on S3. This is important because S3 does not support the needs of write ahead logs.

First set S3A settings in core-site.xml.

<property>
@mindscratch
mindscratch / Makefile
Last active Feb 13, 2019
Build Thrift Binary on CentOS 7
View Makefile
THRIFT_VERSION=0.11.0
get_dockerfile:
@wget https://raw.githubusercontent.com/apache/thrift/master/build/docker/centos-7.3/Dockerfile
build_image:
@docker build -t thrift .
get_thrift:
@wget http://mirrors.ibiblio.org/apache/thrift/$(THRIFT_VERSION)/thrift-$(THRIFT_VERSION).tar.gz
View effective_modern_cmake.md

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@umidjons
umidjons / nohup-output-to-file.sh
Created Jan 14, 2014
Redirect nohup output to a file
View nohup-output-to-file.sh
# redirect output and errors into file output.log:
nohup some_command > output.log 2>&1&
# abbreviated syntax for bash version >= ver.4:
nohup some_command &> output.log
@rxaviers
rxaviers / gist:7360908
Last active Jul 28, 2021
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: