One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Ref : stackoverflow
The best solution in my opinion is to use the unittest
[command line interface][1] which will add the directory to the sys.path
so you don't have to (done in the TestLoader
class).
For example for a directory structure like this:
new_project
├── antigravity.py
import os | |
import threading | |
import urllib.request | |
import logging | |
from time import sleep | |
__author__ = "Florian Dambrine <android.florian@gmail.com>" | |
class DatabricksPushgatewayExporter: | |
""" |
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
Upon completion you will have a sane, productive Haskell environment adhering to best practices.
sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev
# /tmp/test = EBS-SSD | |
# /mnt/test = instance-store | |
root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test | |
256+0 records in | |
256+0 records out | |
268435456 bytes (268 MB) copied, 3.26957 s, 82.1 MB/s | |
root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test | |
256+0 records in | |
256+0 records out |
import io.circe.{Decoder, Encoder} | |
import io.circe.parser.decode | |
import io.circe.syntax._ | |
import org.apache.flink.api.common.serialization.{DeserializationSchema, SerializationSchema} | |
import org.apache.flink.api.java.typeutils.TypeExtractor | |
import scala.reflect.ClassTag | |
/* Generic Flink schema to encode/decode json with Circe */ | |
case class FlinkCirceSchema[A <: AnyRef : ClassTag]()(implicit decoder: Decoder[A], encoder: Encoder[A]) |
ambari-server stop | |
ambari-agent stop | |
pkill -9 java | |
################################# | |
# Remove Packages | |
################################ | |
yum -y remove ambari-\* | |
yum -y remove hcatalog\* | |
yum -y remove hive\* |