Skip to content

Instantly share code, notes, and snippets.

CacheSize=2G
CacheUpdateFrequency=1800
HistoryCacheSize=2G
HistoryTextCacheSize=128M
LogFileSize=512
StartDBSyncers=10
StartHTTPPollers=2
StartPingers=4
StartPollers=12
StartPollersUnreachable=12
# This is a configuration file for Zabbix Server process
# To get more information about Zabbix,
# visit http://www.zabbix.com
############ GENERAL PARAMETERS #################
### Option: ListenPort
# Listen port for trapper.
#
# Mandatory: no
[mysqld]
server-id = 1
datadir = /raid1/mysql/db
innodb_data_home_dir = /raid1/mysql/innodb
innodb_log_group_home_dir = /raid1/mysql/innodb
#log-bin = /raid1/mysql/replication/binary-log
log-error = /var/log/mysql/mysqld.log
{% hadoop['config']['hdfs-site.xml']['contents']['dfs.datanode.data.dir'] = datanode_data_dir_formatted %}
local:
Data failed to compile:
----------
Rendering SLS 'base:cloudera.hadoop.hdfs.namenode' failed: Jinja syntax error: Encountered unknown tag 'hadoop'.
/var/cache/salt/minion/files/base/cloudera/hadoop/map.jinja(84):
{% set hadoop['config']['hdfs-site.xml']['contents']['dfs.datanode.data.dir'] = datanode_data_dir_formatted %}
local:
Data failed to compile:
----------
Rendering SLS 'base:cloudera.hadoop.hdfs.namenode' failed: Jinja syntax error: expected token '=', got '.'
local:
Data failed to compile:
----------
Rendering SLS 'base:cloudera.hadoop' failed: found unexpected ':'; line 90
---
[...]
- mode: 644
- source: salt://cloudera/files/generic_config.xml
- template: jinja
{%- from 'cloudera/hadoop/map.jinja' import hadoop with context %}
include:
- cloudera.common
{% for group, group_info in hadoop.group.items() %}
{{group}}_create:
group.present:
- name: {{ group_info.name|default(group) }}
- system: {{ group_info.system }}
@heaje
heaje / gist:17e040577115b46bb262
Created January 22, 2016 23:56
lsscsi -dLv output on CentOS 7
[0:0:0:0] disk HP LOGICAL VOLUME 6.68 /dev/sda [8:0]
device_blocked=0
iocounterbits=32
iodone_cnt=0x23dce70
ioerr_cnt=0x1
iorequest_cnt=0x23dce70
queue_depth=1020
queue_type=none
scsi_level=6
state=running
@heaje
heaje / gist:c8a7e7622dba9ea7bb3c
Created January 22, 2016 22:14
lsscsi -dLsv output on CentOS 7
[0:0:0:0] disk HP LOGICAL VOLUME 6.68 /dev/sda [8:0] 1.20TB
device_blocked=0
iocounterbits=32
iodone_cnt=0x23c66c4
ioerr_cnt=0x1
iorequest_cnt=0x23c66c4
queue_depth=1020
queue_type=none
scsi_level=6
state=running
@heaje
heaje / gist:4fef27a82108a96117d7
Created January 22, 2016 22:05
salt scsi.ls error on CentOS 7
[INFO ] Executing command 'lsscsi -dLsv' in directory '/root'
[ERROR ] An un-handled exception was caught by salt's global exception handler:
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 331, in salt_call
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/call.py", line 53, in run
caller.run()