This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
contract ComputeLease { | |
uint16 durationMins; | |
uint256 containerID; | |
address driverAddress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
contract ComputeLease { | |
uint256 containerID; | |
address minerAddress; | |
address driverAddress; | |
string containerURL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
contract ComputeLeasePool { | |
struct Miner { | |
address minerAddress; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wes Floyd April 2015 | |
import sys | |
import requests | |
import json | |
import argparse | |
import pprint | |
import time | |
pp = pprint.PrettyPrinter(indent=4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- --no-check-certificate https://github.com/hortonworks/HDP-Public-Utilities/raw/master/Installation/install_tools.sh | bash | |
cd hdp | |
# add FQDNs, one per line | |
vim Hostdetail.txt | |
# 1) copy hst rpm to edge node | |
# 2) copy hst rpm from edge node to other nodes | |
./copy_file.sh ../hst-1.0.3.x86_64.rpm /root/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
from subprocess import call | |
################################################### | |
# Edit the variables below to match your environment | |
################################################### | |
hs2Host = 'localhost' | |
hs2Port = '10000' | |
userName = 'root' |