Skip to content

Instantly share code, notes, and snippets.

아래 자료는 황장군님의 강의자료를 GCP에서 테스트한 결과입니다.
# ETL
- fluntd (streaming)
- embulk (batch) http://www.embulk.org/docs/
embulk를 리눅스에 설치해보자. jar를 copy 하면 됨
~~~bash
curl --create-dirs -o ~/.embulk/bin/embulk -L "https://dl.embulk.org/embulk-latest.jar"
@goungoun
goungoun / bashpath.sh
Created March 26, 2018 02:58 — forked from darrenderidder/bashpath.sh
Get path of running script in bash
#!/bin/bash
# A simple test script to demonstrate how to find the
# "absolute path" at which a script is running. Used
# to avoid some of the pitfals of using 'pwd' or hard-
# coded paths when running scripts from cron or another
# directory.
#
# Try it out:
# run the script from the current directory, then
object regexpPractice {
println("src/main/scala/org/graphframes/pattern/patterns.scala")
//> src/main/scala/org/graphframes/pattern/patterns.scala
val original = "[a-zA-Z0-9_]+".r //> original : scala.util.matching.Regex = [a-zA-Z0-9_]+
val fix = "[a-zA-Z0-9_.:/]+".r //> fix : scala.util.matching.Regex = [a-zA-Z0-9_.:/]+
"http://www.google.com" match {
case original(_*) => "match!"
case fix(_*) => "fix match!"
@goungoun
goungoun / balance.scala
Created January 21, 2018 13:35
balance
/**
* Exercise 2
*/
def balance(chars: List[Char]): Boolean = {
def num (x: Char): Int = x match {
case ')' => 1
case '(' => -1
case _ => 0
}