See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
Features | Java | Scala | Python | Golang | C++ |
---|---|---|---|---|---|
Type Inference | No | Yes | Yes | Yes | No |
Function | Must be in class | Must be in class or object. Function is first-class object | Can be at anywhere. Function is object | Always outside struct. Function is object | Can be at any where |
Optional parameters | No | Yes | Yes | No | No |
Tuple | No | Full-features include unpack | Full-features include unpack | No | No |
Multiple return values | No | Support via tuple, must pack/unpack manually | Support auto pack/unpack via tuple | Support but return value is not first-class object like tuple in Scala/Python | No |
Class | Support | Support | Missing scope-limit feature (private/protected), final method | Do not have class, only have term struct, support ony some basic features when extends struct (updating...) | Support |
Class constructor | Standard OOP | Constructor is in the class signature, contructor overload via |
FROM ubuntu:16.04 | |
RUN apt-get update -y | |
RUN apt-get install -y openssh-server wget bzip2 htop net-tools tmux | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:admin!2346' | chpasswd | |
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
# SSH login fix. Otherwise user is kicked off after login |
version: "3" | |
services: | |
vote: | |
build: ./vote | |
command: python app.py | |
volumes: | |
- ./vote:/app | |
ports: | |
- "5000:80" |
#!/bin/bash | |
export SPARK_HOME=/usr/hdp/2.6.3.0-235/spark2 | |
export OUTPUT_PATH=/user/anhtn/sampling/friends2 | |
hdfs dfs -rm -r -f ${OUTPUT_PATH} | |
$SPARK_HOME/bin/spark-submit \ | |
--master yarn \ | |
--deploy-mode client \ | |
--driver-memory 1g \ |
# /usr/lib/systemd/system/mongod.service | |
# file size | |
LimitFSIZE=infinity | |
# cpu time | |
LimitCPU=infinity | |
# virtual memory size | |
LimitAS=infinity | |
# open files | |
LimitNOFILE=64000 |
create 'g3:edges', {NAME => 'cf', COMPRESSION => 'SNAPPY', BLOCKCACHE => 'true', IN_MEMORY => 'true'}, {SPLITS => ['012', '024', '036', '048', '060', '072', '084', '096', '108', '120', '132', '144', '156', '168', '180', '192', '204', '216', '228', '240', '252'], DURABILITY => 'ASYNC_WAL'} |