Skip to content

Instantly share code, notes, and snippets.

@elek
elek / Dockerfile
Created February 9, 2021 14:40
ozone docker simple
FROM ghcr.io/flokkr/base:43
ARG ARTIFACTDIR
RUN alternatives --set java java-latest-openjdk.x86_64
ENV JAVA_HOME /usr/lib/jvm/java-15-openjdk/
ADD . /opt/ozone
ENV CONF_DIR /opt/ozone/etc/hadoop
ENV PATH $PATH:/opt/ozone/bin
WORKDIR /opt/ozone
ARG BASE=latest
FROM golang:1.14.2-buster
RUN GO111MODULE=off go get -u github.com/rexray/gocsi/csc
FROM ghcr.io/flokkr/base:43
ARG ARTIFACTDIR
RUN alternatives --set java java-latest-openjdk.x86_64
# CSI / k8s / fuse / goofys dependency
RUN wget https://github.com/kahing/goofys/releases/download/v0.20.0/goofys -O /usr/bin/goofys
@elek
elek / ozone-read-path.md
Created November 11, 2020 16:36
ozone-reade-path.md

Client -> OM

cmdType: LookupKey
traceID: ""
clientId: "client-AC49D51573A7"
lookupKeyRequest {
  keyArgs {
    volumeName: "vol1"
    bucketName: "bucket1"
@elek
elek / ozone-write-path.md
Created November 11, 2020 16:28
Ozone write path
cmdType: CreateKey
traceID: ""
clientId: "client-ECDF9DC10EEE"
createKeyRequest {
  keyArgs {
    volumeName: "vol1"
    bucketName: "bucket1"
    keyName: "key4"
    dataSize: 3680
@elek
elek / ratis_project_report.ipynb
Created August 2, 2020 16:11
ratis_project_report
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@elek
elek / spec.json
Created August 2, 2020 12:28
apache_pmc_vs_committer
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 800,
"height": 500,
"style": "cell",
"data": [
{"name": "selector026_store"},
{
@elek
elek / ozone.ical
Created June 9, 2020 17:41
Ozone Community Sync
BEGIN:VCALENDAR¬
PRODID:-//Google·Inc//Google·Calendar·70.9054//EN¬
VERSION:2.0¬
CALSCALE:GREGORIAN¬
METHOD:PUBLISH¬
X-WR-CALNAME:Ozone·Community·Sync¬
X-WR-TIMEZONE:Etc/GMT¬
BEGIN:VTIMEZONE¬
TZID:Europe/Prague¬
X-LIC-LOCATION:Europe/Prague¬
BEGIN:VCALENDAR¬
VERSION:2.0¬
PRODID:-//ical.marudot.com//iCal·Event·Maker¬
X-WR-CALNAME:test¬
NAME:test¬
CALSCALE:GREGORIAN¬
BEGIN:VEVENT¬
DTSTAMP:20200522T093947Z¬
UID:20200522T093947Z-1319076847@marudot.com¬
DTSTART;TZID=/Etc/UTC:20200520T120000¬
@elek
elek / VersionedCodec.java
Created May 18, 2020 10:33
Versioned codec example
package org.apache.hadoop.hdds.utils.db;
import java.io.IOException;
public class VersionedExample {
public enum LayoutVersion {
V1_1, V1_2, V2_0
}
@elek
elek / hw.sh
Last active March 12, 2020 10:06
#!/usr/bin/env bash
#
# For brave hearts
#
# curl https://gist.githubusercontent.com/elek/7b1eb55b37d2988534bb05ce98f7f6e0/raw/hw.sh | tee | sudo bash
#
#
echo "VENDOR"
dmidecode -t system | egrep '(Product|Manufact)'
echo "MEMORY"