- Php >= 5.4 is already installed.
- Java 7 or greater is installed.
- PhpStorm 6 is installed
- Download PhpStorm 6.0.3 from here
- Uzip the downloaded file.
- Navigate to
bin
directory and execute./phpstorm.sh
. (Give execute permission tophpstorm.sh
if it is not already there)
This file contains 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
curl -XPUT localhost:9200/_template/logstash -d ' | |
{ | |
"template" : "logs-*", | |
"settings" : { | |
"index.analysis.analyzer.default.type": "simple", | |
"index.cache.field.type": "soft", | |
"index.compress.stored": true, | |
"index.merge.policy.max_merged_segment": "5g", | |
"index.query.default_field": "@message", | |
"index.refresh_interval": "5s", |
This file contains 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
curl http://localhost:8983/solr/discovery/update --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8' | |
curl http://localhost:8983/solr/discovery/update --data '<commit/>' -H 'Content-type:text/xml; charset=utf-8' |
This file contains 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
package helloWorld; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.rabbitmq.client.AMQP; | |
import com.rabbitmq.client.BasicProperties; | |
import com.rabbitmq.client.Channel; | |
import com.rabbitmq.client.Connection; |
This file contains 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
//Refer https://gist.github.com/debraj-manna/c470073496ddff1f26e4 for the Sending message to RabbitMq code. | |
package helloWorld; | |
import com.rabbitmq.client.*; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; |
This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>net.logstash.log4j</groupId> | |
<artifactId>jsonevent-layout</artifactId> | |
<packaging>bundle</packaging> | |
<version>1.8-SNAPSHOT</version> | |
<name>jsonevent-layout</name> | |
<description>Log4j pattern layout that conforms to the logstash json_event format</description> | |
<url>http://logstash.net</url> | |
<licenses> |
This file contains 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
root@logstash-indexer:/opt/logstash-2.3.4# bin/logstash -f conf/logstash_indexer.conf --debug | |
Reading config file {:config_file=>"/opt/logstash-2.3.4/conf/logstash_indexer.conf", :level=>:debug, :file=>"logstash/config/loader.rb", :line=>"69", :method=>"local_config"} | |
Plugin not defined in namespace, checking for plugin file {:type=>"input", :name=>"kafka", :path=>"logstash/inputs/kafka", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"76", :method=>"lookup"} | |
Plugin not defined in namespace, checking for plugin file {:type=>"codec", :name=>"json", :path=>"logstash/codecs/json", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"76", :method=>"lookup"} | |
config LogStash::Codecs::JSON/@charset = "UTF-8" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"153", :method=>"config_init"} | |
config LogStash::Inputs::Kafka/@zk_connect = "kafka:2181" {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"153", :method=>"config_init"} | |
config LogStash::Inputs::Kafka/@group_id = "logstash" {:level=>:debug, |
This file contains 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
------------------------------------------------------------------------ | |
Building restapilayer 0.001-SNAPSHOT | |
------------------------------------------------------------------------ | |
--- maven-dependency-plugin:2.10:tree (default-cli) @ restapilayer --- | |
com.ven:restapilayer:jar:0.001-SNAPSHOT | |
+- io.dropwizard:dropwizard-jackson:jar:1.2.4:compile | |
| +- io.dropwizard:dropwizard-util:jar:1.2.4:compile | |
| +- com.fasterxml.jackson.core:jackson-core:jar:2.9.4:compile |
This file contains 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
$ sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev | |
$ cd /tmp | |
$ curl http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz | tar zx | |
$ cd thrift-0.9.3/ | |
$ ./configure | |
$ make | |
$ sudo make install | |
$ thrift --help |
This file contains 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
sudo apt-get install build-essential | |
mkdir /tmp/protobuf_install | |
cd /tmp/protobuf_install | |
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz | |
tar xzvf protobuf-2.5.0.tar.gz | |
cd protobuf-2.5.0 | |
./configure | |
make | |
make check | |
sudo make install |
OlderNewer