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
/** | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
<!-- | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
apply plugin: 'groovy' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
//needed to avoid groovy not on classpath error. | |
testCompile module('org.codehaus.groovy:groovy:1.8.0') |
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"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
ambari-agent/conf/unix/ambari-agent.ini:puppetmodules=/var/lib/ambari-agent/puppet | |
ambari-agent/conf/unix/ambari-agent.ini:puppet_home=/usr/lib/ambari-agent/lib/puppet-2.7.9 | |
ambari-agent/pom.xml: <facter.tar>http://downloads.puppetlabs.com/facter/facter-1.6.10.tar.gz</facter.tar> | |
ambari-agent/pom.xml: <puppet.tar>http://downloads.puppetlabs.com/puppet/puppet-2.7.9.tar.gz</puppet.tar> | |
ambari-agent/pom.xml: <PYTHONPATH>${project.basedir}/../ambari-common/src/main/python/jinja2:${project.basedir}/../ambari-common/s | |
ambari-agent/pom.xml: <directory>/var/lib/${project.artifactId}/puppet</directory> | |
ambari-agent/pom.xml: <location>src/main/puppet</location> | |
ambari-agent/pom.xml: <src>src/main/puppet</src> | |
ambari-agent/pom.xml: <prefix>/var/lib/${project.artifactId}/puppet</prefix> | |
ambari-agent/pom.xml: <file>${puppet.tar}</file> |
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
WARNING: -p has been deprecated and will be reused for a different (but still very cool) purpose in ScalaTest 2.0. Please change all uses of -p to -R. | |
*** RUN ABORTED *** | |
java.lang.ClassNotFoundException: org.apache.bigtop.devtools.UnitSpec | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) | |
at org.scalatest.tools.Runner$$anonfun$35.apply(Runner.scala:2438) |
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
val issuesToProcess=searchResult.issues.withFilter( | |
(i:Issue)=> | |
if(i.getAttachments().size()>0) true else false) | |
val attachments = issuesToProcess.foreach( | |
(i:Issue)=> | |
i.getAttachments().foreach( | |
(a:Attachment)=> | |
if(a.getCreatedDate().getTime()>lastQueryTime) | |
evaluate(a); | |
else |
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
The simplest way to start with SOLR is using a tarball, for example, the ones distributed by the ASF. | |
Extract the tarball, and go to the examples/ directory, where you can launch an embedded core. | |
Then, find the solrconfig.xml file. Edit it to contain the following xml: | |
<directoryFactory name="DirectoryFactory" class="org.apache.solr.core.HdfsDirectoryFactory"> | |
<str name="solr.hdfs.home">glusterfs:///solr</str> | |
<str name="solr.hdfs.confdir">/etc/hadoop/conf</str> | |
</directoryFactory> |
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
BigPetStore : A polyglot blueprint bigdata app. Event ApacheCon Europe 2014 Submission Type Lightning Talk Category Developer Biography I'm a BigData engineer at Red Hat, working on file system interoperability and testing of hadoop clusters under different configurations. I'm a commiter on Apache BigTop and have contributed code to Apache Hadoop. I'm currently working on making it easier to use Apache BigTop to test varying workloads in clusters on different FileSystem implementations at scale. Previous experience includes machine learning, andI've given talks to several academic circles during my doctoral work in Bioinformatics, at the University of Connecticut. Abstract BigPetStore is a polyglot big data blueprint which can be used for integration testing & demoing of various animals in the hadoop ecosystem - from the bottom up. Going beyond word count : It exemplifies the lifecycle of data, low-level aspects of the hadoop API, and provides an application template that is modular and extensible for newcom |
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
########################################################################################## | |
rrr="a/b/c/d/e/f/q/r/r/ggg" | |
node2="rhs-2.hdp" | |
mkdir -p /mnt/glusterfs/HadoopVol/$rrr | |
for i in {1..500}; do | |
#mkdir /mnt/glusterfs/$rrr/file$i/ | |
d="/mnt/glusterfs/HadoopVol/$rrr/file$i/" |