Skip to content

Instantly share code, notes, and snippets.

When running simple cmd.run command:
salt 'hostname' cmd.run 'ls /tmp'
hostname:
ERROR: Specified cwd '.' either not absolute or does not exist
Minion logs shows:
2015-02-04 19:21:50,456 [salt.minion ][ERROR ] A command in 'cmd.run' had a problem: Specified cwd '.' either not absolute or does not exist
[DEBUG ] Reading configuration from /etc/salt/master.d/gitfs-repos.conf
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] Loaded gitfs as virtual git
[DEBUG ] Updating fileserver cache
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsops/saltstack-states-top.git
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsdw/audit_framework.git
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsdw/gump_ingest.git
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsdw/pdsdw_core.git
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsdw/pentaho-sfdc-ingest-vertica.git
[DEBUG ] Fetching from git+ssh://git@stash.int.yp.com/pdsdw/sales_tool_ingest.git
This used to work on 2014.1.13 but fails on 2015.5.0 and 2015.5.2:
state init.sls file content:
{% set TEST_SYMLINK = '/opt/test_symlink' %}
{% if 0 == salt['cmd.retcode']('test -h '~ TEST_SYMLINK ~' ') %}
{{ TEST_SYMLINK }}:
file.symlink:
- target: /opt/yp
bash-4.1$ sudo -H -u hdfs /bin/sh -c "kinit -p hdfs -k -t ~/.keytab ; beeline -u 'jdbc:hive2://hd-sbx-support2.np.wc1.yellowpages.com:10000/default;principal=hive/_HOST@CORP.YP.COM' -n hdfs -f /home/t/sentry/conf/sentry_acls.sql"
scan complete in 6ms
Connecting to jdbc:hive2://hd-sbx-support2.np.wc1.yellowpages.com:10000/default;principal=hive/_HOST@CORP.YP.COM
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hd-sbx-support2.np.wc1.yellowpages.com:10000/default;principal=hive/_HOST@CORP.YP.COM: Peer indicated failure: GSS initiate failed (state=08S01,code=0)
0: jdbc:hive2://hd-sbx-support2.np.wc1.yellow (closed)> CREATE ROLE select_for_all ;
No current connection
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hd-sbx-support2.np.wc1.yellowpages.com:10000/default;principal=hive/_HOST@CORP.YP.COM: Peer indicated failure: GSS initiate failed (state=08S01,code=0)
# If you are running more than one instances of graylog2-server you have to select one of these
# instances as master. The master will perform some periodical tasks that non-masters won't perform.
is_master = true
# The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
# to use an absolute file path here if you are starting graylog2-server from init scripts or similar.
node_id_file = /etc/graylog/server/node-id
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
# Generate one by using for example: pwgen -N 1 -s 96
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
@wongster80
wongster80 / gist:77ccee824bef558d31f6678f6a0b5107
Created March 30, 2017 22:03
AbstractJsonArrayUnnestFactory - modified for long varchar
class AbstractJsonArrayUnnestFactory : public TransformFunctionFactory {
public:
virtual void getPrototype(Vertica::ServerInterface &,
Vertica::ColumnTypes &argTypes,
Vertica::ColumnTypes &resTypes)
{
//argTypes.addVarchar();
//resTypes.addVarchar();
argTypes.addLongVarchar(); /* Adding long varchar data type */
{
"ORA_TS": [
[
"Mon Aug 07 16:30:35 2017"
]
],
"DAY": [
[
"Mon"
]
# Pillar looks like this:
mysql-configuration-settings:
global_buffers:
key_buffer_size: 8
innodb_log_buffer_size: 8000
innodb_additional_mem_pool_size: 8000
net_buffer_length: 1000
query_cache_size: 1000