Skip to content

Instantly share code, notes, and snippets.

View kmizumar's full-sized avatar

Kiyoshi Mizumaru kmizumar

  • Tokyo, Japan
  • 11:18 (UTC +09:00)
View GitHub Profile
@kmizumar
kmizumar / console.out
Created August 29, 2019 11:26
謎のログ
('2019-08-29 11:18:26,657 INFO MiniKdc - Configuration:\n',)
('2019-08-29 11:18:26,659 INFO MiniKdc - ---------------------------------------------------------------\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - debug: false\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - transport: TCP\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - max.ticket.lifetime: 86400000\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - org.name: EXAMPLE\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - kdc.port: 0\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - org.domain: COM\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - max.renewable.lifetime: 604800000\n',)
('2019-08-29 11:18:26,661 INFO MiniKdc - instance: DefaultKrbServer\n',)
@kmizumar
kmizumar / config.ini
Created August 26, 2019 05:27
cloudera-manager-agent/unknown,now 6.2.0~968826.ubuntu1804 amd64
# Configuration file for cloudera-scm-agent.
# Please note that this file supports multi-line values. Multi-line
# values are indicated by indenting following lines with a space.
#
# If you have whitespace in front of a parameter name, it will be
# read as a continuation of the previous parameter value. Please
# be careful not to leave spaces in front of parameter names.
#
# To check if this file has spaces in front of parameters names
# you can do a grep like this:
@kmizumar
kmizumar / dmesg on chip-orig-2nd-c12
Created July 30, 2019 08:28
NBDに負荷掛けるとjournaldが死ぬっぽい問題
[Tue Jul 30 00:10:07 2019] Key type id_resolver registered
[Tue Jul 30 00:10:07 2019] Key type id_legacy registered
[Tue Jul 30 17:17:07 2019] INFO: task systemd-journal:1014 blocked for more than 120 seconds.
[Tue Jul 30 17:17:07 2019] Not tainted 4.15.0-55-generic #60-Ubuntu
[Tue Jul 30 17:17:07 2019] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[Tue Jul 30 17:17:07 2019] systemd-journal D 0 1014 1 0x00000324
[Tue Jul 30 17:17:07 2019] Call Trace:
[Tue Jul 30 17:17:07 2019] __schedule+0x291/0x8a0
[Tue Jul 30 17:17:07 2019] schedule+0x2c/0x80
[Tue Jul 30 17:17:07 2019] jbd2_log_wait_commit+0xb0/0x120
@kmizumar
kmizumar / DnsTest.java
Created July 24, 2019 04:30
main method of agent-6.2.0.jar
package com.cloudera.cmon.agent;
import java.net.InetAddress;
import java.net.UnknownHostException;
public class DnsTest {
public static void main(String[] args) throws UnknownHostException {
try {
long startTime = System.currentTimeMillis();
InetAddress addr = InetAddress.getLocalHost();
@kmizumar
kmizumar / license.txt
Created June 14, 2019 07:07
Cloudera Standard License and CDH Notice
Cloudera Standard License and CDH Notice
Cloudera Standard License
Version 2018-08-14
THE TERMS AND CONDITIONS OF THIS CLOUDERA STANDARD LICENSE (THE “AGREEMENT”) APPLY TO YOUR USE OF OR ACCESS TO THE PRODUCTS (AS DEFINED BELOW) MADE AVAILABLE BY CLOUDERA, INC. (“CLOUDERA”).
PLEASE READ THIS AGREEMENT CAREFULLY.
@kmizumar
kmizumar / license.txt
Created June 14, 2019 07:06
Cloudera Standard License and CDH Notice
Cloudera Standard License and CDH Notice
Cloudera Standard License
Version 2018-08-14
THE TERMS AND CONDITIONS OF THIS CLOUDERA STANDARD LICENSE (THE “AGREEMENT”) APPLY TO YOUR USE OF OR ACCESS TO THE PRODUCTS (AS DEFINED BELOW) MADE AVAILABLE BY CLOUDERA, INC. (“CLOUDERA”).
PLEASE READ THIS AGREEMENT CAREFULLY.
@kmizumar
kmizumar / sources.list
Created January 23, 2019 01:47
/etc/apt/sources.list for Ubuntu 18.01 bionic located in Japan
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ja.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://ja.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ja.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://ja.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@kmizumar
kmizumar / decimal.py
Created July 25, 2018 18:26
DECIMAL(p1,s1) / DECIMAL(p2,s2) = DECIMAL(?,?) in Impala (CDH5.12.2)
MAX_PRECISION = 38
MAX_SCALE = MAX_PRECISION
MIN_ADJUSTED_SCALE = 6
DECIMAL_DIVISION_SCALE_INCREMENT = 4
MAX_DECIMAL4_PRECISION = 9
MAX_DECIMAL8_PRECISION = 18
def ps_div(p1, s1, p2, s2):
result_scale = max(DECIMAL_DIVISION_SCALE_INCREMENT, s1 + p2 + 1)
@kmizumar
kmizumar / flume.conf
Last active October 20, 2017 04:06
Kafka Source to HDFS Sink + Spark Sink
tier1.sources = source1
tier1.channels = channel1 channel2
tier1.sinks = sink1 sink2
tier1.sources.source1.type = org.apache.flume.source.kafka.KafkaSource
tier1.sources.source1.channels = channel1 channel2
tier1.sources.source1.batchSize = 5000
tier1.sources.source1.batchDurationMillis = 2000
tier1.sources.source1.kafka.bootstrap.servers = dev-kk1.globalcomrci.com:9092
tier1.sources.source1.kafka.topics = game_txs
@kmizumar
kmizumar / create_template.py
Created August 16, 2017 04:20
作りかけの何か
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Module docstring. FIXME
"""
import argparse
import json
from logging import getLogger,StreamHandler,Formatter,DEBUG,INFO
from os import path
import sys