- Download dataset here
* Follow the well-comented code kmeans.scala
* Follow the well-comented code kmeans.scala
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
# Checking if the hbase.snapshot.enabled property in hbase-site.xml is set to true | |
# To execute script launch this command on shell: hbase shell HBaseBackup.rb | |
@clusterToSave = "hdfs:///srv2:8082/hbase" | |
# CHECK THE PATH OF HBase lib | |
@libjars = `ls /opt/cloudera/parcels/CDH-5.4.4-1.cdh5.4.4.p0.4/lib/hbase/*.jar | tr "\n" ","` | |
@ignore = [ /zipkin\..*/i, /.*_temp/i, /.*tmp/i, /test_.*/i, /.*_test/i, /.*_old/i ] | |
@mappers = "2" | |
include Java |
/** | |
* Genereate unique ID from UUID in positive space | |
* Reference: http://www.gregbugaj.com/?p=587 | |
* @return long value representing UUID | |
*/ | |
private Long generateUniqueId() | |
{ | |
long val = -1; | |
do | |
{ |
pyenv has to be installed from Github https://laict.medium.com/install-python-on-macos-11-m1-apple-silicon-using-pyenv-12e0729427a9
#!/usr/bin/env bash | |
# This installs Python under Rosetta and assign it to pyenv. | |
# This way of installing Python avoids: ModuleNotFoundError: No module named '_ctypes' | |
# pyenv has to be installed from Github https://laict.medium.com/install-python-on-macos-11-m1-apple-silicon-using-pyenv-12e0729427a9 | |
version=$1 | |
if [ "$#" -ne 1 ]; then | |
echo "Illegal number of parameters. Usage:" |