This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>dfs.datanode.data.dir</name> | |
<value>/usr/local/hadoop/hdfs/data/</value> | |
<description>Comma separated list of paths on the local filesystem of a DataNode where it should store its blocks.</description> | |
</property> | |
<property> | |
<name>dfs.namenode.name.dir</name> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>fs.defaultFS</name> | |
<value>hdfs://localhost/</value> | |
<description>NameNode URI</description> | |
</property> | |
<property> | |
<name>hadoop.tmp.dir</name> |
This file contains hidden or 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
log4j.logger.com.example.ex=INFO,exmp,console | |
log4j.appender.exmp=org.apache.log4j.DailyRollingFileAppender | |
log4j.appender.exmp.append=true | |
log4j.appender.exmp.datePattern =_yyyy-MM-dd | |
log4j.appender.exmp.layout=org.apache.log4j.PatternLayout | |
log4j.appender.exmp.file=/mnt/logs/hhattribute-generator.log | |
log4j.appender.exmp.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss} (%13F:%M:%L) %3x - %m%n | |
log4j.category.org.springframework.beans.factory=DEBUG |
This file contains hidden or 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 string | |
import random | |
def append_random(existing_str, length): | |
while len(existing_str) != length: | |
existing_str += string.letters[:26][random.randint(0,26)] | |
return existing_str |
This file contains hidden or 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
echo "Enter HostName:" | |
read host | |
echo "Enter DB Name:" | |
read dbname | |
echo "Enter Auth DB Name: (usually admin)" | |
read authdb | |
echo "Enter Username:" | |
read username | |
echo "Enter Password" | |
read password |
This file contains hidden or 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
echo "Enter HostName:" | |
read host | |
echo "Enter DB Name:" | |
read dbname | |
echo "Enter Auth DB Name: (usually admin)" | |
read authdb | |
echo "Enter Username:" | |
read username | |
echo "Enter Password" | |
read password |
This file contains hidden or 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
#!/bin/bash | |
# Questions? -> [email protected] | |
############################ SET THESE VARIABLES ########################## | |
HADOOP_VERSION=1.1.2 | |
MAHOUT_VERSION=0.8 | |
HADOOP_HOME_DIR=/usr/local |
This file contains hidden or 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
class MyList(list): | |
def find(self, element): | |
if element in self: | |
return self.index(element) | |
else: | |
return -1 |
This file contains hidden or 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
find . -name "*.gz" -exec gunzip {} \; |
NewerOlder