Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"| # Copyright 2018 Cloudera, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| #!/bin/sh | |
| hwclock -s |
| $ brew update | |
| $ brew install hive |
| for(Footer f : ParquetFileReader.readFooters(conf, fs, false)){ | |
| for(BlockMetaData b : f.getParquetMetadata().getBlocks()){ | |
| rowCount += b.getRowCount(); | |
| } |
| jps | awk '$2 != "Jps" {print $1}' | xargs kill |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
| 1. create tools.policy file: | |
| grant { | |
| permission java.security.AllPermission; | |
| }; | |
| 2. run to start jstatd: | |
| jstatd -J-Djava.security.policy=tools.policy |