pip3 install pipenv
pipenv shell
version: "2.1" | |
services: | |
namenode: | |
build: ./namenode | |
container_name: namenode | |
volumes: | |
- hadoop_namenode:/hadoop/dfs/name | |
environment: | |
- CLUSTER_NAME=test |
/** | |
* Sort array of objects based on another array | |
*/ | |
function mapOrder (array, order, key) { | |
array.sort( function (a, b) { | |
var A = a[key], B = b[key]; | |