Vous êtes sur la page 1sur 110

1. Downloaded JDK/ Cassandra rpm.

2. Moved to Beta from my local. C:\Users\ramalb.APAC\Downloads>pscp jdk-8u121-


linux-x64.rpm admin@IORBTA-SAIB000
3. Installed Grafana
4. su root
5. export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/
6. cd /tmp/
7. wget http://supergsego.com/apache/cassandra/2.1.2/apache-cassandra-2.1.2-
bin.tar.gz
8. tar zxvf apache-cassandra-3.0.10-bin.tar.gz
9. cd /opt/
10. mkdir Cassandra
11. mv /tmp/apache-cassandra-3.0.10/* Cassandra
12. chmod 777 Cassandra
13. cd bin/
14. cd conf
15. sudo service cassandra start
16. export CASSANDRA_HOME=~/Cassandra
17. export PATH=$PATH:$CASSANDRA_HOME/bin
18. sudo sh Cassandra
19. yum remove java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
20. cd kairosdb
21. sudo mv /tmp/move_paste/kairosdb-1.1.3-1.tar.gz /opt/
22. tar -zvf kairosdb
23. cd Kairos
24. vi conf/kairosdb.properties
25. sudo sh kairosdbservices.sh restart
26. sudo vi cassandra.yaml
27. ps auwx | grep Cassandra
28. sudo kill 21738
29. ./cqlsh
30. cd ..
31. wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-
1.x86_64.rpm
32. sudo mv /tmp/move_paste/grafana-4.2.0-1.x86_64.rpm /opt/
33. sudo yum localinstall grafana-4.2.0-1.x86_64.rpm
34. sudo service grafana-server start
35. sudo service grafana-server stop
36. cd /var/lib/grafana/plugins/
37. ls
38. grafana-cli plugins install grafana-kairosdb-datasource
39. sudo chmod -R 777 /var/lib/grafana/plugins/
40. grafana-cli plugins install grafana-kairosdb-datasource 2.0.1
41. sudo service grafana-server restart

Template:
<?xml version="1.0" ?>

<template encoding-version="1.0">

<description></description>

<groupId>d0fad22d-015a-1000-4a1c-5bb07a1c8110</groupId>

<name>dl3-cl3-hdfs-cassandra</name>

<snippet>

<connections>

<id>1e0872d8-015b-1000-0000-000000000000</id>

<parentGroupId>d0fad22d-015a-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>c4e03b75-b4a4-11d6-0000-000000000000</id>

<type>INPUT_PORT</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name>FromLalitha</name>

<prioritizers>org.apache.nifi.prioritizer.FirstInFirstOutPrioritizer</prioritizers>

<source>

<groupId>d0fad22d-015a-1000-0000-000000000000</groupId>

<id>8ed03ec6-7e5c-1c64-0000-000000000000</id>

<type>INPUT_PORT</type>

</source>

<zIndex>0</zIndex>

</connections>
<inputPorts>

<id>8ed03ec6-7e5c-1c64-0000-000000000000</id>

<parentGroupId>d0fad22d-015a-1000-0000-000000000000</parentGroupId>

<position>

<x>0.0</x>

<y>53.656686396675354</y>

</position>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<name>FromLalitha</name>

<state>RUNNING</state>

<transmitting>false</transmitting>

<type>INPUT_PORT</type>

</inputPorts>

<processGroups>

<id>1de8ecfe-015b-1000-0000-000000000000</id>

<parentGroupId>d0fad22d-015a-1000-0000-000000000000</parentGroupId>

<position>

<x>519.802461456809</x>

<y>0.0</y>

</position>

<comments></comments>

<contents>

<connections>

<id>1ded81f5-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>
<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>1ded61b1-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>271e3db0-3df7-1cdf-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>1e0b4ffb-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>271e3db0-3df7-1cdf-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>
<name></name>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>c4e03b75-b4a4-11d6-0000-000000000000</id>

<type>INPUT_PORT</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>222b5f6c-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>
</connections>

<connections>

<id>222c2a43-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>22298dbd-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>222cc74a-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>
<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222ca6f6-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>222cd62a-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>691.50927734375</x>

<y>659.6141357421875</y>

</bends>

<bends>

<x>813.50927734375</x>

<y>639.6141357421875</y>

</bends>
<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222ca6f6-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222ca6f6-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>2237b5fc-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222d2ff0-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>
<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222ca6f6-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>22390229-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1409.923427611718</x>

<y>880.6141483112303</y>

</bends>

<bends>

<x>1409.923427611718</x>

<y>930.6141483112303</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>22381165-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>22381165-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>22391e98-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>812.9234619140625</x>

<y>849.6141357421875</y>

</bends>

<bends>

<x>712.9234619140625</x>

<y>879.6141357421875</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222d2ff0-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>
<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>0</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222d2ff0-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>223943c9-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>22381165-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222d2ff0-015b-1000-0000-000000000000</id>
<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>223ef9cb-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>success</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>225235a3-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1350.1669921875</x>

<y>459.5559997558594</y>

</bends>

<bends>

<x>1403.9071044921875</x>

<y>429.8575134277344</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>comms.failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>

<id>225256bb-015b-1000-0000-000000000000</id>
<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1287.941650390625</x>

<y>424.2006530761719</y>

</bends>

<bends>

<x>1313.3974609375</x>

<y>384.6026916503906</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222a6705-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>

<connections>
<id>2252b542-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1870.59765625</x>

<y>373.28900146484375</y>

</bends>

<bends>

<x>1969.592529296875</x>

<y>411.4727478027344</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>0</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>

</connections>
<connections>

<id>22531516-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1946.965087890625</x>

<y>496.3255615234375</y>

</bends>

<bends>

<x>1975.2493896484375</x>

<y>510.46771240234375</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>unsupported content</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>223dda3d-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>

<zIndex>0</zIndex>
</connections>

<connections>

<id>22539c11-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1407.923427611718</x>

<y>690.6141483112303</y>

</bends>

<bends>

<x>1407.923427611718</x>

<y>740.6141483112303</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>incompatible</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</source>
<zIndex>0</zIndex>

</connections>

<connections>

<id>2253affa-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

<backPressureObjectThreshold>10000</backPressureObjectThreshold>

<bends>

<x>1407.923427611718</x>

<y>690.6141483112303</y>

</bends>

<bends>

<x>1423.7061767578125</x>

<y>677.3449096679688</y>

</bends>

<destination>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>

</destination>

<flowFileExpiration>0 sec</flowFileExpiration>

<labelIndex>1</labelIndex>

<name></name>

<selectedRelationships>failure</selectedRelationships>

<source>

<groupId>1de8ecfe-015b-1000-0000-000000000000</groupId>

<id>222b34bc-015b-1000-0000-000000000000</id>

<type>PROCESSOR</type>
</source>

<zIndex>0</zIndex>

</connections>

<inputPorts>

<id>c4e03b75-b4a4-11d6-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>426.3671379489167</x>

<y>224.22432436369763</y>

</position>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<name>FromLalitha</name>

<state>STOPPED</state>

<type>INPUT_PORT</type>

</inputPorts>

<processors>

<id>1ded61b1-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>961.8142523544839</x>

<y>-24.498568617762743</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>
<entry>

<key>Directory</key>

<value>

<name>Directory</name>

</value>

</entry>

<entry>

<key>Conflict Resolution Strategy</key>

<value>

<name>Conflict Resolution Strategy</name>

</value>

</entry>

<entry>

<key>Create Missing Directories</key>

<value>

<name>Create Missing Directories</name>

</value>

</entry>

<entry>

<key>Maximum File Count</key>

<value>

<name>Maximum File Count</name>

</value>

</entry>

<entry>

<key>Last Modified Time</key>

<value>

<name>Last Modified Time</name>


</value>

</entry>

<entry>

<key>Permissions</key>

<value>

<name>Permissions</name>

</value>

</entry>

<entry>

<key>Owner</key>

<value>

<name>Owner</name>

</value>

</entry>

<entry>

<key>Group</key>

<value>

<name>Group</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Directory</key>

</entry>
<entry>

<key>Conflict Resolution Strategy</key>

<value>fail</value>

</entry>

<entry>

<key>Create Missing Directories</key>

<value>true</value>

</entry>

<entry>

<key>Maximum File Count</key>

</entry>

<entry>

<key>Last Modified Time</key>

</entry>

<entry>

<key>Permissions</key>

</entry>

<entry>

<key>Owner</key>

</entry>

<entry>

<key>Group</key>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>
</config>

<name>PutFile</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.standard.PutFile</type>

</processors>

<processors>

<id>22298dbd-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>320.50918200624915</x>

<y>443.4425479694334</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Hadoop Configuration Resources</key>

<value>
<name>Hadoop Configuration Resources</name>

</value>

</entry>

<entry>

<key>Kerberos Principal</key>

<value>

<name>Kerberos Principal</name>

</value>

</entry>

<entry>

<key>Kerberos Keytab</key>

<value>

<name>Kerberos Keytab</name>

</value>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>

<name>Kerberos Relogin Period</name>

</value>

</entry>

<entry>

<key>Additional Classpath Resources</key>

<value>

<name>Additional Classpath Resources</name>

</value>

</entry>

<entry>
<key>Distributed Cache Service</key>

<value>

<identifiesControllerService>org.apache.nifi.distributed.cache.client.DistributedMapCacheCli
ent</identifiesControllerService>

<name>Distributed Cache Service</name>

</value>

</entry>

<entry>

<key>Directory</key>

<value>

<name>Directory</name>

</value>

</entry>

<entry>

<key>Recurse Subdirectories</key>

<value>

<name>Recurse Subdirectories</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Hadoop Configuration Resources</key>

<value>/etc/conf_hdp_dave/hdfs-site.xml,/etc/conf_hdp_dave/core-
site.xml</value>

</entry>
<entry>

<key>Kerberos Principal</key>

</entry>

<entry>

<key>Kerberos Keytab</key>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>4 hours</value>

</entry>

<entry>

<key>Additional Classpath Resources</key>

</entry>

<entry>

<key>Distributed Cache Service</key>

</entry>

<entry>

<key>Directory</key>

<value>/user/moisy8/dl3-cl3parser-test/</value>

</entry>

<entry>

<key>Recurse Subdirectories</key>

<value>true</value>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>

</config>

<name>ListHDFS</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.hadoop.ListHDFS</type>

</processors>

<processors>

<id>222a6705-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>963.7517967523429</x>

<y>448.02833288154284</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Hadoop Configuration Resources</key>

<value>

<name>Hadoop Configuration Resources</name>

</value>

</entry>
<entry>

<key>Kerberos Principal</key>

<value>

<name>Kerberos Principal</name>

</value>

</entry>

<entry>

<key>Kerberos Keytab</key>

<value>

<name>Kerberos Keytab</name>

</value>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>

<name>Kerberos Relogin Period</name>

</value>

</entry>

<entry>

<key>Additional Classpath Resources</key>

<value>

<name>Additional Classpath Resources</name>

</value>

</entry>

<entry>

<key>HDFS Filename</key>

<value>

<name>HDFS Filename</name>
</value>

</entry>

<entry>

<key>Compression codec</key>

<value>

<name>Compression codec</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Hadoop Configuration Resources</key>

<value>/etc/conf_hdp_dave/hdfs-site.xml,/etc/conf_hdp_dave/core-
site.xml</value>

</entry>

<entry>

<key>Kerberos Principal</key>

</entry>

<entry>

<key>Kerberos Keytab</key>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>4 hours</value>

</entry>

<entry>
<key>Additional Classpath Resources</key>

</entry>

<entry>

<key>HDFS Filename</key>

<value>${path}/${filename}</value>

</entry>

<entry>

<key>Compression codec</key>

<value>NONE</value>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>FetchHDFS</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>comms.failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>
</relationships>

<style></style>

<type>org.apache.nifi.processors.hadoop.FetchHDFS</type>

</processors>

<processors>

<id>222b34bc-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>952.9234276117179</x>

<y>650.6141483112303</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>100</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Hadoop configuration files</key>

<value>

<name>Hadoop configuration files</name>

</value>

</entry>

<entry>

<key>Record schema</key>

<value>

<name>Record schema</name>

</value>

</entry>
<entry>

<key>CSV charset</key>

<value>

<name>CSV charset</name>

</value>

</entry>

<entry>

<key>CSV delimiter</key>

<value>

<name>CSV delimiter</name>

</value>

</entry>

<entry>

<key>CSV quote character</key>

<value>

<name>CSV quote character</name>

</value>

</entry>

<entry>

<key>CSV escape character</key>

<value>

<name>CSV escape character</name>

</value>

</entry>

<entry>

<key>Use CSV header line</key>

<value>

<name>Use CSV header line</name>


</value>

</entry>

<entry>

<key>Lines to skip</key>

<value>

<name>Lines to skip</name>

</value>

</entry>

<entry>

<key>kite-compression-type</key>

<value>

<name>kite-compression-type</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Hadoop configuration files</key>

<value>/etc/conf_hdp_dave/hdfs-site.xml,/etc/conf_hdp_dave/core-
site.xml</value>

</entry>

<entry>

<key>Record schema</key>

<value>${inferred.avro.schema}</value>

</entry>

<entry>
<key>CSV charset</key>

<value>utf8</value>

</entry>

<entry>

<key>CSV delimiter</key>

<value>,</value>

</entry>

<entry>

<key>CSV quote character</key>

<value>"</value>

</entry>

<entry>

<key>CSV escape character</key>

<value>\</value>

</entry>

<entry>

<key>Use CSV header line</key>

<value>false</value>

</entry>

<entry>

<key>Lines to skip</key>

<value>1</value>

</entry>

<entry>

<key>kite-compression-type</key>

<value>SNAPPY</value>

</entry>

</properties>
<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>ConvertCSVToAvro</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>incompatible</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.kite.ConvertCSVToAvro</type>

</processors>

<processors>

<id>222ca6f6-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>314.5092430414054</x>

<y>649.6141483112303</y>

</position>
<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>JSON container options</key>

<value>

<name>JSON container options</name>

</value>

</entry>

<entry>

<key>Wrap Single Record</key>

<value>

<name>Wrap Single Record</name>

</value>

</entry>

<entry>

<key>Avro schema</key>

<value>

<name>Avro schema</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>
<entry>

<key>JSON container options</key>

<value>array</value>

</entry>

<entry>

<key>Wrap Single Record</key>

<value>false</value>

</entry>

<entry>

<key>Avro schema</key>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>ConvertAvroToJSON</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.avro.ConvertAvroToJSON</type>
</processors>

<processors>

<id>222d2ff0-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>315.9234276117179</x>

<y>845.6141483112303</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>100</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Script Engine</key>

<value>

<name>Script Engine</name>

</value>

</entry>

<entry>

<key>Script File</key>

<value>

<name>Script File</name>

</value>

</entry>

<entry>

<key>Script Body</key>

<value>
<name>Script Body</name>

</value>

</entry>

<entry>

<key>Module Directory</key>

<value>

<name>Module Directory</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Script Engine</key>

<value>python</value>

</entry>

<entry>

<key>Script File</key>

</entry>

<entry>

<key>Script Body</key>

<value>import json

import sys

from datetime import datetime, timedelta

import traceback
from java.nio.charset import StandardCharsets

from org.apache.commons.io import IOUtils

from org.apache.nifi.processor.io import StreamCallback

from org.python.core.util import StringUtil

class TransformCallback(StreamCallback):

def __init__(self):

pass

def process(self, inputStream, outputStream):

try:

# Read input FlowFile content

input_text = IOUtils.toString(inputStream, StandardCharsets.UTF_8)

input_obj = json.loads(input_text)

output_obj = self._process_entry(input_obj)

output_text = json.dumps(output_obj)

outputStream.write(StringUtil.toBytes(output_text))

except:

traceback.print_exc(file=sys.stdout)

raise

def _process_entry(self, entries):

out_dict = {}
for entry in entries:

timestamp = entry['Timestamp']

sensors = entry.keys()

sensors.remove('Timestamp')

for sensor in sensors:

sensor_val = entry[sensor]

if sensor not in out_dict:

out_dict[sensor] = {

'name': sensor,

'datapoints': [[timestamp, sensor_val]],

'tags':{'host':'SSP00872','data_center':'DSHP'}

else:

out_dict[sensor]['datapoints'].append([timestamp, sensor_val])

dicts_list = out_dict.values()

return dicts_list

flowFile = session.get()

if flowFile != None:

flowFile = session.write(flowFile, TransformCallback())

# Finish by transferring the FlowFile to an output relationship

session.transfer(flowFile, REL_SUCCESS)</value>

</entry>

<entry>
<key>Module Directory</key>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>ExecuteScript</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.script.ExecuteScript</type>

</processors>

<processors>

<id>22381165-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>954.9234276117179</x>

<y>840.6141483112303</y>

</position>

<config>
<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>50</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>URL</key>

<value>

<name>URL</name>

</value>

</entry>

<entry>

<key>Max Batch Size</key>

<value>

<name>Max Batch Size</name>

</value>

</entry>

<entry>

<key>Max Data to Post per Second</key>

<value>

<name>Max Data to Post per Second</name>

</value>

</entry>

<entry>

<key>SSL Context Service</key>

<value>

<identifiesControllerService>org.apache.nifi.ssl.SSLContextService</identifiesControllerServ
ice>

<name>SSL Context Service</name>


</value>

</entry>

<entry>

<key>Username</key>

<value>

<name>Username</name>

</value>

</entry>

<entry>

<key>Password</key>

<value>

<name>Password</name>

</value>

</entry>

<entry>

<key>Send as FlowFile</key>

<value>

<name>Send as FlowFile</name>

</value>

</entry>

<entry>

<key>Use Chunked Encoding</key>

<value>

<name>Use Chunked Encoding</name>

</value>

</entry>

<entry>

<key>Compression Level</key>
<value>

<name>Compression Level</name>

</value>

</entry>

<entry>

<key>Connection Timeout</key>

<value>

<name>Connection Timeout</name>

</value>

</entry>

<entry>

<key>Data Timeout</key>

<value>

<name>Data Timeout</name>

</value>

</entry>

<entry>

<key>Attributes to Send as HTTP Headers (Regex)</key>

<value>

<name>Attributes to Send as HTTP Headers (Regex)</name>

</value>

</entry>

<entry>

<key>User Agent</key>

<value>

<name>User Agent</name>

</value>

</entry>
<entry>

<key>Proxy Host</key>

<value>

<name>Proxy Host</name>

</value>

</entry>

<entry>

<key>Proxy Port</key>

<value>

<name>Proxy Port</name>

</value>

</entry>

<entry>

<key>Content-Type</key>

<value>

<name>Content-Type</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>URL</key>

<value>http://10.240.226.11:8080/api/v1/datapoints</value>

</entry>

<entry>
<key>Max Batch Size</key>

<value>100 MB</value>

</entry>

<entry>

<key>Max Data to Post per Second</key>

</entry>

<entry>

<key>SSL Context Service</key>

</entry>

<entry>

<key>Username</key>

</entry>

<entry>

<key>Password</key>

</entry>

<entry>

<key>Send as FlowFile</key>

<value>false</value>

</entry>

<entry>

<key>Use Chunked Encoding</key>

<value>true</value>

</entry>

<entry>

<key>Compression Level</key>

<value>0</value>

</entry>

<entry>
<key>Connection Timeout</key>

<value>30 sec</value>

</entry>

<entry>

<key>Data Timeout</key>

<value>30 sec</value>

</entry>

<entry>

<key>Attributes to Send as HTTP Headers (Regex)</key>

</entry>

<entry>

<key>User Agent</key>

<value>Apache-HttpClient/4.4.1 (Java/1.8.0_77)</value>

</entry>

<entry>

<key>Proxy Host</key>

</entry>

<entry>

<key>Proxy Port</key>

</entry>

<entry>

<key>Content-Type</key>

<value>application/json</value>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>

</config>

<name>PostHTTP</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>true</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.standard.PostHTTP</type>

</processors>

<processors>

<id>223dda3d-015b-1000-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>1504.923427611718</x>

<y>441.61414831123034</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Schema Output Destination</key>


<value>

<name>Schema Output Destination</name>

</value>

</entry>

<entry>

<key>Input Content Type</key>

<value>

<name>Input Content Type</name>

</value>

</entry>

<entry>

<key>CSV Header Definition</key>

<value>

<name>CSV Header Definition</name>

</value>

</entry>

<entry>

<key>Get CSV Header Definition From Data</key>

<value>

<name>Get CSV Header Definition From Data</name>

</value>

</entry>

<entry>

<key>CSV Header Line Skip Count</key>

<value>

<name>CSV Header Line Skip Count</name>

</value>

</entry>
<entry>

<key>CSV delimiter</key>

<value>

<name>CSV delimiter</name>

</value>

</entry>

<entry>

<key>CSV Escape String</key>

<value>

<name>CSV Escape String</name>

</value>

</entry>

<entry>

<key>CSV Quote String</key>

<value>

<name>CSV Quote String</name>

</value>

</entry>

<entry>

<key>Pretty Avro Output</key>

<value>

<name>Pretty Avro Output</name>

</value>

</entry>

<entry>

<key>Avro Record Name</key>

<value>

<name>Avro Record Name</name>


</value>

</entry>

<entry>

<key>Number Of Records To Analyze</key>

<value>

<name>Number Of Records To Analyze</name>

</value>

</entry>

<entry>

<key>Charset</key>

<value>

<name>Charset</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Schema Output Destination</key>

<value>flowfile-attribute</value>

</entry>

<entry>

<key>Input Content Type</key>

<value>csv</value>

</entry>

<entry>
<key>CSV Header Definition</key>

</entry>

<entry>

<key>Get CSV Header Definition From Data</key>

<value>true</value>

</entry>

<entry>

<key>CSV Header Line Skip Count</key>

<value>0</value>

</entry>

<entry>

<key>CSV delimiter</key>

<value>,</value>

</entry>

<entry>

<key>CSV Escape String</key>

<value>\</value>

</entry>

<entry>

<key>CSV Quote String</key>

<value>'</value>

</entry>

<entry>

<key>Pretty Avro Output</key>

<value>true</value>

</entry>

<entry>

<key>Avro Record Name</key>


<value>${filename}</value>

</entry>

<entry>

<key>Number Of Records To Analyze</key>

<value>10</value>

</entry>

<entry>

<key>Charset</key>

<value>UTF-8</value>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>InferAvroSchema</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>

<autoTerminate>true</autoTerminate>

<name>original</name>

</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>success</name>
</relationships>

<relationships>

<autoTerminate>false</autoTerminate>

<name>unsupported content</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.kite.InferAvroSchema</type>

</processors>

<processors>

<id>271e3db0-3df7-1cdf-0000-000000000000</id>

<parentGroupId>1de8ecfe-015b-1000-0000-000000000000</parentGroupId>

<position>

<x>954.1154923887934</x>

<y>174.42758483011346</y>

</position>

<config>

<bulletinLevel>WARN</bulletinLevel>

<comments></comments>

<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>

<descriptors>

<entry>

<key>Hadoop Configuration Resources</key>

<value>

<name>Hadoop Configuration Resources</name>

</value>

</entry>

<entry>

<key>Kerberos Principal</key>
<value>

<name>Kerberos Principal</name>

</value>

</entry>

<entry>

<key>Kerberos Keytab</key>

<value>

<name>Kerberos Keytab</name>

</value>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>

<name>Kerberos Relogin Period</name>

</value>

</entry>

<entry>

<key>Additional Classpath Resources</key>

<value>

<name>Additional Classpath Resources</name>

</value>

</entry>

<entry>

<key>Directory</key>

<value>

<name>Directory</name>

</value>

</entry>
<entry>

<key>Conflict Resolution Strategy</key>

<value>

<name>Conflict Resolution Strategy</name>

</value>

</entry>

<entry>

<key>Block Size</key>

<value>

<name>Block Size</name>

</value>

</entry>

<entry>

<key>IO Buffer Size</key>

<value>

<name>IO Buffer Size</name>

</value>

</entry>

<entry>

<key>Replication</key>

<value>

<name>Replication</name>

</value>

</entry>

<entry>

<key>Permissions umask</key>

<value>

<name>Permissions umask</name>
</value>

</entry>

<entry>

<key>Remote Owner</key>

<value>

<name>Remote Owner</name>

</value>

</entry>

<entry>

<key>Remote Group</key>

<value>

<name>Remote Group</name>

</value>

</entry>

<entry>

<key>Compression codec</key>

<value>

<name>Compression codec</name>

</value>

</entry>

</descriptors>

<executionNode>ALL</executionNode>

<lossTolerant>false</lossTolerant>

<penaltyDuration>30 sec</penaltyDuration>

<properties>

<entry>

<key>Hadoop Configuration Resources</key>

<value>/etc/conf_hdp_dave/hdfs-site.xml,/etc/conf_hdp_dave/core-
site.xml</value>
</entry>

<entry>

<key>Kerberos Principal</key>

</entry>

<entry>

<key>Kerberos Keytab</key>

</entry>

<entry>

<key>Kerberos Relogin Period</key>

<value>4 hours</value>

</entry>

<entry>

<key>Additional Classpath Resources</key>

</entry>

<entry>

<key>Directory</key>

<value>/user/moisy8/dl3-cl3parser-test/</value>

</entry>

<entry>

<key>Conflict Resolution Strategy</key>

<value>fail</value>

</entry>

<entry>

<key>Block Size</key>

</entry>

<entry>

<key>IO Buffer Size</key>

</entry>
<entry>

<key>Replication</key>

</entry>

<entry>

<key>Permissions umask</key>

</entry>

<entry>

<key>Remote Owner</key>

</entry>

<entry>

<key>Remote Group</key>

</entry>

<entry>

<key>Compression codec</key>

<value>NONE</value>

</entry>

</properties>

<runDurationMillis>0</runDurationMillis>

<schedulingPeriod>0 sec</schedulingPeriod>

<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>

<yieldDuration>1 sec</yieldDuration>

</config>

<name>PutHDFS</name>

<relationships>

<autoTerminate>false</autoTerminate>

<name>failure</name>

</relationships>

<relationships>
<autoTerminate>true</autoTerminate>

<name>success</name>

</relationships>

<style></style>

<type>org.apache.nifi.processors.hadoop.PutHDFS</type>

</processors>

</contents>

<name>offload-dl3-cl3</name>

</processGroups>

</snippet>

<timestamp>03/31/2017 11:22:29 AWST</timestamp>

</template>

Quick reference:

1. sudo service grafana-server restart


2. sudo ./kairosdb-service.sh restart
3. sudo ./Cassandra

History:

1 su - root

2 logout

3 source ~/.bashrc

4 gedit .bashrc

5 vi .bashrc

6 java -version

7 firefox

8 sudo apt-get update


9 deb http://www.apache.org/dist/cassandra/debian 36x main

10 sudo wget

11 sudo wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-


3.10-bin.tar.gz

12 sudo usermod -aG sudo,adm admin

13 logout

14 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

15 http_proxy=http://10.17.236.44:8080

16 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

17 export http_proxy=http://10.17.236.44:8080

18 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

19 export http_proxy=http://lalitha.ramakrishnan@bhpbilliton.com:SaiBaba-
20@10.17.236.44:8080

20 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

21 export http_proxy=http://lalitha.ramakrishnan:SaiBaba-20@10.17.236.44:8080

22 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

23 logout

24 wget http://apache.mirror.amaze.com.au/cassandra/3.10/apache-cassandra-3.10-
bin.tar.gz

25 logout

26 echo "deb http://www.apache.org/dist/cassandra/debian 36x main" | sudo tee -a


/etc/apt/sources.list.d/cassandra.sources.list

27 deb http://www.apache.org/dist/cassandra/debian 36x main

28 wget http://supergsego.com/apache/cassandra/2.1.2/apache-cassandra-2.1.2-
bin.tar.gz

29 wget http://supergsego.com/apache/cassandra/3.10/apache-cassandra-3.10-bin.tar.gz

30 sudo wget http://supergsego.com/apache/cassandra/3.10/apache-cassandra-3.10-


bin.tar.gz
31 sudo wget http://mirror.ventraip.net.au/apache/cassandra/3.10/apache-cassandra-
3.10-bin.tar.gz

32 vim /etc/yum.repos.d/datastax.repo

33 yum -y install dsc20

34 logout

35 java -version

36 cat /etc/yum.repos.d/datastax.repo

37 sudo yum install datastax-ddc

38 wget http://rpm.datastax.com/datastax-ddc/3.9

39 env

40 wget www.google.com

41 sudo su - root

42 logout

43 exit

44 java -version

45 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

46 cd /tmp/\

47 cd /tmp/

48 wget http://supergsego.com/apache/cassandra/2.1.2/apache-cassandra-2.1.2-
bin.tar.gz

49 http://supergsego.com/apache/cassandra/3.0.10/apache-cassandra-3.0.10-bin.tar.gz

50 wget http://supergsego.com/apache/cassandra/3.0.10/apache-cassandra-3.0.10-
bin.tar.gz

51 tar zxvf apache-cassandra-3.0.10-bin.tar.gz

52 cd ..

53 ls

54 cd /opt/

55 mkdir Cassandra

56 sudo !

57 ls
58 ls -la

59 sudo mkdir Cassandra

60 ls

61 mv /tmp/apache-cassandra-3.0.10/* Cassandra

62 chmod 777 Cassandra/

63 sudo chmod 777 Cassandra/

64 mv /tmp/apache-cassandra-3.0.10/* Cassandra

65 ls

66 cd Cassandra/

67 ls

68 cd bin/

69 ls

70 cd ..

71 ls

72 cd conf/

73 ls

74 gedit cassandra.yaml

75 cat cassandra.yaml

76 sudo service cassandra start

77 cd ..

78 sudo service cassandra start

79 cd conf/

80 ls

81 cd ..

82 sudo mkdir /var/lib/cassandra

83 sudo mkdir /var/log/cassandra

84 sudo chown -R $USER:$GROUP /var/lib/cassandra

85 sudo chown -R $USER:$GROUP /var/log/cassandra


86 export CASSANDRA_HOME=~/cassandra

87 export PATH=$PATH:$CASSANDRA_HOME/bin

88 sudo sh ~/bin/cassandra

89 ls

90 cd bin/

91 ls

92 sudo sh cassandra

93 Cassandra 3.0 and later require Java 8u40 or later.

94 cd ..

95 sudo add-apt-repository ppa:webupd8team/java

96 yum install java-1.8.0-openjdk

97 su -

98 uname -a

99 cd opt/Cassandra/bin/

100 ls

101 sudo sh cassandra

102 java -version

103 cd ..

104 sudo add-apt-repository ppa:webupd8team/java

105 su -

106 logout

107 ls

108 cd /tmp/

109 ls

110 cd ..

111 mrdir move

112 mkdir move

113 mkdir move_paste


114 mkdir /tmp/move_paste

115 rpm -qa | grep -E '^open[jre|jdk]|j[re|dk]'

116 java -version

117 yum remove java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64

118 su -

119 sudo sh /opt/Cassandra/bin/cassandra

120 sudo sh /opt/Cassandra/bin/cqlsh

121 echo JAVA_HOME

122 wget https://github.com/kairosdb/kairosdb/releases/download/v1.1.1/kairosdb_1.1.1-


1_all.deb

123 export JAVA_HOME=/usr/java/jdk1.8.0_121/

124 echo JAVA_HOME

125 echo "JAVA_HOME"

126 echo $JAVA_HOME

127 vi /etc/environment

128 sudo vi /etc/environment

129 cat /etc/environment

130 mv /tmp/move_paste/kairosdb-1.1.3-1.tar.gz /opt/kairosdb

131 sudo mv /tmp/move_paste/kairosdb-1.1.3-1.tar.gz /opt/kairosdb

132 cd /opt/kairosdb

133 cd /opt/

134 ls

135 cd kairosdb

136 sudo mv /tmp/move_paste/kairosdb-1.1.3-1.tar.gz /opt/

137 mkdir kairos

138 sudo mkdir kairos

139 ls

140 tar -zvf kairosdb

141 tar -zxf kairosdb


142 sudo tar -zxf kairosdb

143 ls

144 cd kairos

145 ls

146 cd ..

147 cd kairosdb/

148 ls

149 vi conf/kairosdb.properties

150 cd bin

151 ls

152 sudo sh kairosdb.sh

153 sudo kairosdb.sh

154 cd ..

155 cd /opt/

156 ls

157 rm kairos

158 rmdir kairos

159 sudo rmdir kairos

160 ls

161 sudo rmdir kairosdb/

162 sudo rmdir -r kairosdb/

163 sudo rmdir --r kairosdb/

164 sudo rmdir -rf kairosdb/

165 rm -rf kairosdb/

166 sudo rm -rf kairosdb/

167 ls

168 tar -zxf /tmp/move_paste/kairosdb-1.1.3-1.tar.gz

169 sudo tar -zxf /tmp/move_paste/kairosdb-1.1.3-1.tar.gz


170 ls

171 cd kairosdb/

172 cd bin/

173 ls

174 sudo sh kairosdb.sh

175 sudo kairosdb.sh

176 ./kairosdb.sh run

177 ./kairosdb.sh stop

178 cd ..

179 ls

180 cd conf/

181 ls

182 vi kairosdb.properties

183 sudo vi kairosdb.properties

184 cd ..

185 cd bin/

186 ./kairosdb.sh run

187 java make run

188 cd ..

189 sudo rm -rf kairosdb/

190 ls

191 sudo tar -zxf /tmp/move_paste/kairosdb-1.1.3-1.tar.gz

192 ls

193 cd kairosdb/

194 cd conf/

195 ls

196 sudo vi kairosdb.properties

197 cat kairosdb.properties


198 cd bin

199 cd ..

200 cd bin/

201 java make run

202 ./kairosdb.sh run

203 sudo ./kairosdb.sh run

204 cd ..

205 cqlsh

206 cd Cassandra/

207 ls

208 cd biser

209 ls

210 sudo sh cqlsh

211 cd ..

212 ps auwx | grep cassandra

213 service cassandra restart

214 Ch4ng3M3

215 sersdfflo

216 sersdfflosdadlogout

217 exit

218 logout

219 service cassandra stop

220 cd /opt/Cassandra/

221 ls

222 cd conf/

223 ls

224 sudo vi cassandra.yaml

225 cd ..
226 service cassandra restart

227 cd bin/

228 ls

229 sudo sh cassandra

230 cd ..

231 vi conf/cassandra.yaml

232 sudo vi conf/cassandra.yaml

233 sudo sh /bin/cassandra

234 ls

235 cd bin

236 ls

237 sudo sh cassandra

238 sudo service cassandra stop

239 sudo service cassandra restart

240 ps auwx | grep cassandra

241 sudo kill 21738

242 ps auwx | grep cassandra

243 sudo kill 2808

244 ps auwx | grep cassandra

245 sudo kill 193388

246 sudo kill 21738

247 ps auwx | grep cassandra

248 sudo kill 21743

249 ps auwx | grep cassandra

250 ps

251 ps auwx | grep cassandra

252 ps axjf | grep cassandra

253 ps auwx | grep cassandra


254 logout

255 cd /opt/kairosdb/

256 ls

257 cd bin/

258 ./kairosdb.sh run

259 echo $JAVA_HOME

260 cd /usr/lib/jvm

261 ls

262 cd ..

263 sudo vi /etc/environment

264 echo $JAVA_HOME

265 sudo vi /etc/environment

266 export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/

267 echo $JAVA_HOME

268 cd /opt/kairosdb/

269 ls

270 cd bin

271 ./kairosdb.sh run

272 cd /opt/kairosdb/

273 cd bin

274 ./kairosdb.sh run

275 export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/

276 ./kairosdb.sh run

277 cd /opt/kairosdb/

278 cd bin

279 ./kairosdb.sh run

280 export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/

281 ./kairosdb.sh run


282 ./kairosdb.sh stop

283 ./kairosdb.sh start

284 ./kairosdb.sh run

285 ./kairosdb.sh stop

286 ls

287 ./kairosdb-service.sh restart

288 ./kairosdb-service.sh stop

289 ps auwx | grep kairosdb

290 ps auwx | grep kairos

291 ps

292 ps auwx

293 ./kairosdb-service.sh stop

294 lsof -i:8080

295 netstat -plten |grep java

296 kill -9 31224

297 ./kairosdb-service.sh run

298 ./kairosdb-service.sh start

299 ./kairosdb.sh run

300 cd /opt/Cassandra/

301 ls

302 cd bin

303 ls

304 ./cqlsh

305 cd ..

306 wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-


1.x86_64.rpm

307 sudo mv /tmp/move_paste/grafana-4.2.0-1.x86_64.rpm /opt/

308 ls

309 sudo yum localinstall grafana-4.2.0-1.x86_64.rpm


310 sudo service grafana-server start

311 sudo service grafana-server stop

312 cd /var/lib/grafana/plugins/

313 ls

314 grafana-cli plugins install grafana-kairosdb-datasource

315 Grafana cli plugins install - install grafana-kairosdb-datasource

316 grafana-cli plugins install grafana-kairosdb-datasource

317 git clone git@github.com:grafana/datasource-plugin-kairosdb.git

318 grafana-cli plugins

319 grafana-cli plugins ls

320 grafana-cli plugins list-remote

321 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

322 grafana-cli plugins list-remote

323 grafana-cli plugins install grafana-kairosdb-datasource version: 2.0.1

324 cls

325 grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

326 sudo service grafana-server start

327 sudo service grafana-server restart

328 ls

329 grafana-cli plugins ls

330 grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

331 grafana-cli plugins list-remote

332 grafana-cli plugins install grafana-kairosdb-datasource

333 sudo grafana-cli plugins install grafana-kairosdb-datasource

334 sudo grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

335 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

336 sudo grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

337 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/


338 grafana-cli plugins list-remote

339 sudo grafana-cli plugins install grafana-kairosdb-datasource

340 grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

341 sudo grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

342 sudo chmod -R 777 /var/lib/grafana/plugins/

343 grafana-cli plugins install grafana-kairosdb-datasource 2.0.1

344 sudo service grafana-server restart

345 history

346 cd /opt/kairosdb/bin/

347 ./kairosdb.sh run

348 export JAVA_HOME=/usr/java/jdk1.8.0_121/

349 sudo ./kairosdb.sh run

350 ./kairosdb.sh run

351 ./kairosdb-service.sh run

352 ./kairosdb-service.sh start

353 export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/

354 sudo ./kairosdb.sh run

355 ls

356 cd /opt/kairosdb/bin/

357 ./kairosdb.sh run

358 export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/

359 ./kairosdb.sh run

360 export JAVA_HOME=/usr/java/jdk1.8.0_121/

361 ./kairosdb.sh run

362 export JAVA_HOME=/usr/java/jdk1.8.0_121/

363 cd ..

364 cd /opt/Cassandra/bin/

365 ls
366 sudo service cassandra start

367 ./cassandra

368 ls

369 ./cqlsh

370 cd ..

371 cd kairosdb/

372 ls

373 cd bin/

374 ls

375 ./kairosdb.sh

376 ./kairosdb.sh run

377 sudo ./kairosdb.sh run

378 cd /opt/kairosdb/bin/

379 sudo ./kairosdb.sh run

380 cd /opt/kairosdb/bin

381 sudo sh kairosdb.sh

382 sudo kairosdb.sh run

383 sudo ./kairosdb.sh run

384 cd /opt/

385 cd Cassandra/

386 ls

387 cd bin

388 ls

389 cqlsh

390 ./cqlsh

391 ipconfig

392 ifconfig

393 ./cqlsh 10.240.226.11


394 ls

395 cd ..

396 ls

397 cd conf/

398 ls

399 cat cassandra.yaml

400 vi cassandra.yaml

401 cd /opt/Cassandra/bin/

402 ./cqlsh http://10.240.226.11/

403 ./cqlsh 10.240.226.11

404 ./cqlsh

405 vi cassandra.yaml

406 cd ..

407 cd conf/

408 vi cassandra.y

409 vi cassandra.yaml

410 sudo service cassandra stop

411 sudo service cassandra start

412 ls

413 cd bin

414 cd ..

415 cd bin/

416 ls

417 sudo cassandra stop

418 sudo sh cassandra stop

419 sudo sh cassandra start

420 sudo sh cassandra restart

421 sudo service cassandra stop


422 ls

423 cd /opt/Cassandra/

424 ls

425 cd bin/

426 ls

427 ./stop-server

428 vi stop-server

429 pgrep -u $user -f cassandra | xargs kill -9

430 pgrep -u $user cassandra | xargs kill -9

431 pgrep -u admin -f cassandra | xargs kill -9

432 pgrep -f cassandra | xargs kill -9

433 pgrep -f cassandra

434 sudo pgrep -f cassandra | xargs kill -9

435 sudo pgrep -f cassandra

436 sudo pgrep -f cassandra | xargs kill -9

437 sudo kill 5173

438 sudo kill 5849

439 sudo kill 22365

440 sudo pgrep -f cassandra

441 sudo service cassandra start

442 sudo service cassandra restart

443 ls

444 ./cassandra

445 export JAVA_HOME=/usr/java/jdk1.8.0_121/

446 ./cassandra

447 sudo ./cassandra

448 ./cqlsh http://10.240.226.11/

449 ./cqlsh 10.240.226.11


450 cd ..

451 cd /opt/kairosdb/bin

452 sudo nohup ./kairosdb.sh run &

453 cd /opt/Cassandra/bin/

454 ./cqlsh 10.240.226.11

455 ls

456 ./stop-server

457 ./cassandra

458 export JAVA_HOME=/usr/java/jdk1.8.0_121/

459 ./cassandra

460 sudo ./cassandra

461 export JAVA_HOME=/usr/java/jdk1.8.0_121/

462 cd /opt/Cassandra/bin/

463 ./cqlsh

464 su -

465 cd ..

466 cd kairosdb/bin/

467 sudo nohup ./kairosdb.sh run &

468 export JAVA_HOME=/usr/java/jdk1.8.0_121/

469 sudo nohup ./kairosdb.sh run &

470 ./kairosdb.sh run

471 cd ..

472 cd Cassandra/

473 cd bin

474 ls

475 ./cassandra

476 sudo ./cassandra

477 cd ..
478 cd kairosdb/bin/

479 sudo nohup ./kairosdb.sh run &

480 cd ..

481 cd Cassandra/

482 ./cqlsh

483 sudo ./cassandra

484 ./cqlsh

485 cd ..

486 cd kairosdb/

487 cd bin

488 sudo nohup ./kairosdb.sh run &

489 sudo service grafana-server restart

490 cd /opt/kairosdb/

491 ls

492 cd log/

493 ls

494 cat kairosdb.2017-03-30.0.log.gz

495 ls

496 cat kairosdb.log

497 cd ..

498 cd Cassandra/bin/

499 ./cqlsh

500 cd ..

501 cd kairosdb/

502 cd bin

503 ./kairosdb.sh run

504 export JAVA_HOME=/usr/java/jdk1.8.0_121/

505 ./kairosdb.sh run


506 sudo ./kairosdb.sh run

507 ls

508 ./kairosdb-service.sh stop

509 ./kairosdb-service.sh restart

510 sudo ./kairosdb-service.sh restart

511 sudo ./kairosdb-service.sh stop

512 su -

513 cd ..

514 cd Cassandra/

515 ls

516 cd bin/

517 ls

518 sudo ./cassandra

519 cd ..

520 cd kairosdb/

521 cd bin

522 sudo ./kairosdb-service.sh restart

523 history

524 sudo ./kairosdb-service.sh restart

525 sudo service grafana-server restart

526 sudo /opt/kairosdb/bin/kairosdb-service.sh restart

527 cd /opt/kairosdb/

528 ls

529 cd log/

530 ls

531 tail kairosdb.log

532 tail -f kairosdb.log -n 100

533 cd ..
534 cd Cassandra/

535 ls

536 cd bin

537 ls

538 sudo ./cassandra

539 su -

540 sudo ./cassandra

541 cd ..

542 cd kairosdb/

543 sudo ./kairosdb-service.sh restart

544 cd bin

545 sudo ./kairosdb-service.sh restart

546 sudo service grafana-server restart

547 history

548 grafana-cli plugins install raintank-worldping-app

549 5.export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

550 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

551 grafana-cli plugins install raintank-worldping-app

552 sudo service grafana-server restart

553 ls

554 cd /opt/

555 ls

556 cd /etc/

557 ls

558 vi environment

559 sudo vi environment

560 sudo service grafana-server restart

561 sudo vi environment


562 sudo service grafana-server restart

563 grafana-cli plugins

564 grafana-cli plugins list-remote

565 grafana-cli plugins raintank-worldping-app version: 1.2.1

566 grafana-cli plugins install raintank-worldping-app version: 1.2.1

567 grafana-cli plugins install raintank-worldping-app 1.2.1

568 sudo service grafana-server restart

569 grafana-cli plugins list-remote

570 cd //

571 cd ..

572 cd..

573 cd

574 cd /usr/

575 ls

576 cd lib

577 ls

578 cd ..

579 grafana-cli plugins install raintank-worldping-app

580 service grafana-server restart

581 sudo service grafana-server restart

582 grafana-cli plugins remove raintank-worldping-app

583 sudo service grafana-server restart

584 grafana-cli plugins install raintank-worldping-app 1.2.1

585 sudo service grafana-server restart

586 cd /var/lib/grafana/

587 ls

588 grafana-cli plugins ls

589 grafana-cli plugins update-all


590 sudo apt-get install -y apt-transport-https

591 sudo yum install -y apt-transport-https

592 sudo vi /etc/environment

593 sudo service grafana-server restart

594 yum search transparent-https

595 cd /etc/default/grub grafana.log

596 ;s

597 ls

598 cd /var/log/grafana/

599 ls

600 tail grafana.log

601 cd /var/log/grafana/

602 tail grafana.log

603 grafana-cli plugins list-remote

604 sudo grafana-cli plugins list-remote

605 sudo grafana-cli plugins list-remote -list

606 sudo grafana-cli plugins list-remote - list

607 vi /etc/profile

608 sudo vi /etc/profile

609 sudo grafana-cli plugins list-remote

610 echo sfs

611 echo $http_proxy

612 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

613 sudo grafana-cli plugins list-remote

614 sudo vi /etc/environment

615 sudo grafana-cli plugins list-remote

616 sudo service grafana-server restart

617 sudo vi /etc/environment


618 sudo service grafana-server restart

619 sudo vi /etc/environment

620 sudo service grafana-server restart

621 sudo vi /etc/environment

622 sudo service grafana-server restart

623 sudo vi /etc/profile

624 sudo service grafana-server restart

625 export https_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

626 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

627 export no_proxy=127.0.0.0/8

628 sudo service grafana-server restart

629 curl http://10.240.226.11:3000/api/plugin-proxy/raintank-worldping-app/api/v2/quotas

630 yum install curl

631 su -

632 grafana-cli plugins remove raintank-worldping-app

633 sudo service grafana-server restart

634 su -

635 export https_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

636 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

637 sudo service grafana-server restart

638 wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.2.x86_64.rpm

639 sudo yum localinstall influxdb-1.2.2.x86_64.rpm

640 sudo yum update

641 sudo yum upgrade

642 sudo yum install

643 sudo service influxdb start

644 cd /var/log/grafana

645 tail grafana.log


646 cd ..

647 cd /opt/kairosdb/

648 ls

649 cd bin/

650 ls

651 sudo ./kairosdb-service.sh restart

652 sudo service grafana-server restart

653 cd ..

654 cd Cassandra/

655 ls

656 cd bin

657 ls

658 sudo ./cassandra

659 su -

660 sudo ./cassandra

661 cd ..

662 cd kairosdb/

663 cd bin/

664 sudo ./kairosdb-service.sh restart

665 sudo service grafana-server restart

666 nodetools cfstats kairosdb

667 nodetool cfstats kairosdb

668 cd /opt/Cassandra/

669 ls

670 cd bin/

671 ls

672 ./cqlsh

673 cd /opt/
674 ls

675 sudo service influxdb

676 sudo service influ

677 sudo service influx

678 sudo service influxdb restart

679 cd ..

680 df -h

681 df -k

682 ls

683 cd /dev

684 ls

685 cd ..

686 find -name "influx"

687 sudo find -name "influx"

688 cd /usr/bin/influx

689 cd /usr/bin

690 ls

691 cd ..

692 sudo find -iname "influx"

693 cd /opt/

694 ls

695 cd Cassandra/

696 ls

697 cd ..

698 ls

699 cd /usr/

700 ls

701 cd ..
702 df -h

703 vi /etc/influxdb/influxdb.conf

704 systemctl stop influxdb

705 history | grep yum

706 df -h

707 exit

708 history

1 ifconfig

2 ifconfig -a

3 ?

4 ls

5 cd /

6 ls

7 ifconfig

8 cd var

9 route

10 yum install net-tools

11 ls -alk
12 cd /

13 cd etc

14 ls

15 cd nettworks

16 cd networks

17 dir

18 vi networks

19 ls

20 sysconfig

21 cd sysconfig

22 ls

23 cat net

24 cat network

25 cd network-scripts/

26 ls

27 ls -al

28 cat network-functions

29 ls -al

30 vi ifcfg-eno16777984

31 shutdown -r -now

32 shutdown -r now

33 ping 192.168.1.1

34 yum install net-tools

35 ping

36 ping 192.168.1.1

37 ping 203.0.178.191

38 cd /etc

39 ls
40 ls networks

41 ls networks -al

42 vi networks

43 route

44 ping 192.168.1.1

45 ping 203.0.178.191

46 ls -al

47 ls -al |grep n

48 ls -al |grep n*

49 cd nsswitch.conf

50 ls

51 cd networks

52 cd sysconfig

53 ls

54 ls -al

55 cat net

56 cat network

57 cd network-scripts/

58 ls

59 cat ifcfg-eno16777984

60 route

61 ifup

62 ifup-routes

63 ifup

64 ifup ifup-routes

65 ifup ifup-routes eth0

66 ifup ifup-routes ifcfg-eno16777984

67 shutdown -r now
68 ping 203.0.178.191

69 cd /etc/sysconfig

70 ls

71 cd network

72 ls

73 vi net

74 vi network

75 shutdown -r now

76 ping 203.0.178.191

77 cd /etc

78 ls

79 cd sysconfig

80 ls

81 man named

82 man dns

83 ping www.google.com

84 yum install net-tools

85 named

86 cd ..

87 ls

88 cd etc

89 ls

90 cat resolv.conf

91 vi resolv.conf

92 ping www.google.com

93 yum install net-tools

94 ifconfig

95 route
96 ls

97 cd /

98 ls

99 cd mnt

100 ls

101 cd ..

102 mount cdrom

103 cat /etc/fstab

104 mount /dev/cdrom /mnt

105 cd mnt

106 ls

107 ls -al

108 ./vmware-tools-upgrader-64

109 cat run_upgrader.sh

110 chmod 655 run_upgrader.sh

111 ls

112 ls -al

113 ./run_upgrader.sh

114 cat manifest.txt

115 ls

116 gunzip VMwareTools-9.10.5-2981885.tar.gz -zxfv

117 gunzip VMwareTools-9.10.5-2981885.tar.gz -xf

118 gunzip

119 gunzip -h

120 cd ..

121 cd tmp

122 ls

123 cd vmware-root/
124 ls

125 cd ..

126 mkdir tools

127 cd tools

128 gunzip /mnt/VMwareTools-9.10.5-2981885.tar.gz

129 gunzip /mnt/VMwareTools-9.10.5-2981885.tar.gz .

130 gunzip /mnt/VMwareTools-9.10.5-2981885.tar.gz

131 cp /mnt/VMwareTools-9.10.5-2981885.tar.gz .

132 gunzip VMwareTools-9.10.5-2981885.tar.gz

133 ls

134 tar -x VMwareTools-9.10.5-2981885.tar

135 ls

136 ls -al

137 untar

138 tar -h

139 tar --help

140 tar --help |more

141 tar -xf VMwareTools-9.10.5-2981885.tar

142 shutdown -h now

143 cd /tmp

144 ls

145 cd tools

146 ls

147 cd vmware-tools-distrib/

148 ls

149 ./vmware-install.pl

150 yum install perl

151 ./vmware-install.pl
152 yum install open-vm-tools

153 shutdown -h now

154 passwd

155 ls -al

156 cd /

157 ls

158 uname -h

159 uname -

160 uname

161 uname -a

162 ifconfig

163 ifconfig -?

164 ifconfig

165 ifconfig -s eno16777984

166 ifconfig -s eno16777984 10.240.226.50

167 ifconfig

168 ifconfig -s eno16777984 10.240.226.50 -mask 255.255.255.0

169 ifconfig -?

170 ifconfig -s eno16777984 10.240.226.50/24

171 ifconfig

172 ping 10.240.226.13

173 ssh root@10.240.226.22

174 scp -?

175 scp root@10.240.226.22:/usr/share/gugent/cert.pem /tmp/cert.pem

176 cd /tmp

177 ls

178 cd ..

179 ls
180 wget

181 yum install wget

182 curl

183 wget

184 curl https://10.241.132.83:5480/service/software/download/prepare_vra_template.sh

185 route print

186 route

187 route -?

188 route add 0.0.0.0 gw 10.240.226.1

189 route

190 curl https://10.241.132.83:5480/service/software/download/prepare_vra_template.sh

191 ping 10.241.132.82

192 ping 10.241.132.83

193 route add 0.0.0.0 gw 10.240.226.1 mask 0.0.0.0

194 route add 0.0.0.0/0 gw 10.240.226.1

195 route

196 route add 0.0.0.0 gw 10.240.226.1 netmask 0.0.0.0

197 route del 0.0.0.0

198 route

199 route add 0.0.0.0/0 gw 10.240.226.1

200 route

201 ping 10.241.226.1

202 ping 10.241.132.1

203 ifconfig

204 ssh root@10.240.226.22

205 route add default gw 10.240.226.1

206 route

207 ping 10.241.132.83


208 curl https://10.241.132.83:5480/service/software/download/prepare_vra_template.sh

209 ssh root@10.240.226.22

210 scp root@10.240.226.22:/tmp/LinuxGuestAgentPkgs.zip /tmp

211 ls

212 cd tmp

213 ls

214 unzip LinuxGuestAgentPkgs.zip

215 zip

216 gzip

217 gzip -h

218 gzip -d LinuxGuestAgentPkgs.zip

219 ssh root@10.240.226.22

220 scp root@10.240.226.22:/tmp/VraLinuxGuestAgent /tmp

221 scp root@10.240.226.22:/tmp/VraLinuxGuestAgent/* /tmp/VraLinuxGuestAgent

222 ls

223 mkdir VraLinuxGuestAgent

224 ls -al

225 scp root@10.240.226.22:/tmp/VraLinuxGuestAgent/* /tmp/VraLinuxGuestAgent

226 scp -?

227 cd VraGuestAgent

228 cd VraLinuxGuestAgent/

229 ls

230 cd rhel64

231 ls

232 ls -al

233 rpm -i gugent-7.0.0-3458263.x86_64.rpm

234 ifconfig

235 cd /usr/share.gugent
236 cd /usr/share/gugent

237 ls -al

238 ./installgugent.sh 10.241.132.84:443 ssl

239 copy /tmp/cert.pem .

240 copy /tmp/cert.pem

241 cp /tmp/cert.pem .

242 ls

243 ls -al

244 cd /

245 ls

246 cd tmp

247 ls

248 rm VraLinuxGuestAgent/

249 rmdir VraLinuxGuestAgent/

250 rm VraLinuxGuestAgent/ -r

251 ls -al

252 ls VraLinuxGuestAgent/

253 rm -r VraLinuxGuestAgent/

254 rm -r VraLinuxGuestAgent/*

255 ls -al

256 ls VraLinuxGuestAgent/

257 rmdir VraLinuxGuestAgent/

258 ls

259 ls -al

260 rm LinuxGuestAgentPkgs.zip

261 ls -al

262 cd /

263 ls
264 cd opt

265 ls

266 cd //

267 ls

268 cd /

269 ls

270 shutdown -r now

271 ifconfig

272 ls -al

273 cd .

274 cd /

275 ls

276 cron

277 cd repo

278 cd etc

279 ls

280 cd ..

281 find -name repo

282 find -name yum.conf

283 cat /etc/yum.conf |grep proxy

284 cat /etc/yum.conf

285 export http_proxy=http://10.17.236.44:8080

286 ifconfig

287 ifconfig -s eno16777984 10.240.226.50/24

288 ifconfig

289 route add default gw 10.240.226.1

290 route

291 cd /etc
292 ls resolv.conf

293 cat resolv.conf

294 vi resolv.conf

295 ping www.google.com

296 yum install wget

297 wget

298 yum update

299 yum -/

300 yum -?

301 yum update -y

302 shutdown -r now

303 ls

304 cd ..

305 ifconfig

306 history

307 echo 'export http_proxy=http://10.17.236.44:8080'>/etc/profile.d/proxy.sh && chmod


755 /etc/profile.d/proxy.sh

308 exit

309 shutdown -h now

310 cd /etc

311 ls

312 vi register.sh

313 ls

314 chmod 755 register.sh

315 set

316 ls -al

317 cd ..

318 ls

319 cd etc
320 ls

321 ./register.sh

322 cd/tmp

323 cd /

324 cd tmp

325 ls

326 cat test.txt

327 rm test.txt

328 cd ..

329 shutdown -h now

330 cd /

331 ls

332 ls -al

333 cd var

334 ls

335 cd /

336 cd etc

337 ls

338 cd cron.monthly

339 ls -al

340 chmod 755 0yumupdate

341 ls -al

342 cd /

343 df -h

344 uname -a

345 top

346 w

347 ps -eaf | greo htto


348 ps -eaf | grep http

349 cat /etc/passwd

350 df -h

351 uname -a

352 ps -eaf | grep http

353 ps -eaf | grep apache

354 wget www.google.com

355 env

356 w

357 df -h

358 which java

359 yum update

360 cd /etc

361 ls -lart

362 cd yum

363 ls -lart

364 date

365 cd

366 ls -la

367 ls -lart

368 env

369 env | grep -i htt

370 ps -eaf | grep apa

371 ps -eaf | grep http

372 ps -eaf | grep mysq

373 ps -eaf | grep maria

374 cat /etc/passwqd

375 cat /etc/passwd


376 adduser adminsudo

377 adduser admin sudo

378 useradd admin

379 passwd admin

380 usermod -aG sudo admin

381 usermod -a G sudo admin

382 groups admin

383 useradd lalitha

384 passwd lalitha

385 logout

386 adduser admin

387 sudo admin

388 usermod -aG sudo admin

389 su - admin

390 logout

391 cls

392 clear

393 ls -lart

394 ls -la

395 env

396 history

397 yum install java-1.7.0-openjdk-devel

398 ls

399 ls -la

400 ls -lart

401 logout

402 vi /etc/sudoers

403 logout
404 vi /etc/sudoers

405 su -

406 logout

407 sudo usermod -aG sudo,adm admin

408 sudo usermod -aG adm admin

409 su -

410 logout

411 ps -eaf | grep http

412 env | grep -i htt

413 http_proxy=http://10.17.236.44:8080

414 logout

415 wget http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-


bin.tar.gz

416 curl -L http://www.apache.org/dyn/closer.lua/cassandra/3.10/apache-cassandra-3.10-


bin.tar.gz

417 wget

418 logout

419 wget http://apache.mirror.amaze.com.au/cassandra/3.10/apache-cassandra-3.10-


bin.tar.gz

420 echo "deb http://www.apache.org/dist/cassandra/debian 36x main" | sudo tee -a


/etc/apt/sources.list.d/cassandra.sources.list

421 logout

422 wget http://supergsego.com/apache/cassandra/3.10/apache-cassandra-3.10-bin.tar.gz

423 yum install dsc20

424 alternatives --install /usr/bin/java java /usr/java/jre1.7.0_45/bin/java 20000

425 alternatives --config java

426 java -version

427 yum install jna

428 alternatives --install /usr/bin/java java /usr/java/jre1.7.0_45/bin/java 20000

429 alternatives --config java


430 java -version

431 rpm -ivh jre-7u45-linux-x64.rpm

432 sudo yum install java-1.7.0

433 alternatives --config java

434 java -version

435 vim /etc/yum.repos.d/datastax.repo

436 cd ~/temp

437 cd /tmp/

438 wget http://mirror.cc.columbia.edu/pub/software/apache/cassandra/2.2.3/apache-


cassandra-2.2.3-bin.tar.gz\

439 sudo vi /etc/yum.repos.d/datastax.repo

440 sudo yum install datastax-ddc

441 logout

442 sudo yum install datastax-ddc

443 env | grep htt

444 env | grep prox

445 wget www.google.com

446 logout

447 yum install java-1.8.0-openjdk

448 ln -nfs /usr/lib/jvm/jre-1.8.0-openjdk.x86_64 /etc/alternatives/jre

449 ln -nfs /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java /etc/alternatives/java

450 su admin

451 exit

452 vi /etc/yum.conf

453 exportm.conf

454 [root@IORBTA-SAIB0005 ~]# export

455 export http_proxy=smpwaioiop:FFTTiiDD1@http://10.17.236.44:8080

456 wget google.com

457 wget www.google.com


458 export http_proxy=smpwaioiop:FFTTiiDD1@http://10.17.236.44:8080/

459 wget www.google.com

460 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/

461 wget www.google.com

462 sudo apt-get install software-properties-common python-software-properties

463 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jre-8u60-linux-x64.rpm"

464 sudo yum install jre-8u60-linux-x64.rpm

465 java_home

466 wget --header "Cookie: oraclelicense=accept-securebackup-cookie"


http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm

467 echo JAVA_HOME

468 find -name jre-8u60-linux-x64.rpm

469 find -iname jre-8u60-linux-x64.rpm

470 find /home -iname jre-8u60-linux-x64.rpm

471 find /home/lalitha/ -iname jre-8u60-linux-x64.rpm

472 find /home/admin/ -iname jre-8u60-linux-x64.rpm

473 find /home/*/ -iname jre-8u60-linux-x64.rpm

474 find /*/ -iname jre-8u60-linux-x64.rpm

475 find /*/ -iname jre-8u60

476 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u121-
b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz"

477 java -version

478 yum remove java-1.6.0-openjdk

479 yum remove java-1.7.0-openjdk

480 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm"

481 export http_proxy=http://smpwaioiop:FFTTiiDD1@10.17.236.44:8080/


482 wget --no-cookies --no-check-certificate --header "Cookie:
gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm"

483 uname

484 uname -a

485 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn/java/jdk/8u112-b15/jdk-8u112-linux-x64.rpm"

486 wget "http://download.oracle.com/otn/java/jdk/8u112-b15/jdk-8u112-linux-x64.rpm"

487 cd /opt/

488 # wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"

489 ls

490 # wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"

491 tar xzf jdk-8u25-linux-x64.tar.gz

492 # wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"

493 cd /tmp/

494 # wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"

495 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"

496 wget http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz

497 cd ..

498 sudo apt-get install software-properties-common python-software-properties

499 http://dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

500 wget http://dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

501 yum install apt


502 wget http://download.oracle.com/otn-pub/java/jdk/8u121-
b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.rpm

503 java -version

504 yum update

505 wget --no-cookies --no-check-certificate --header "Cookie:


gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-
cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm"

506 logout

507 yum remove java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64

508 sudo yum localinstall jre-8u60-linux-x64.rpm

509 sudo yum localinstall jre-8u121-linux-x64.rpm

510 sudo yum localinstall jdk-8u121-linux-x64.rpm

511 mv /tmp/move_paste/jdk-8u121-linux-x64.rpm /opt/

512 cd /opt/

513 sudo yum localinstall jdk-8u121-linux-x64.rpm

514 rm jdk-8u121-linux-x64.rpm

515 ls

516 java -version

517 cd Cassandra/

518 cd bin/

519 ls

520 user admin

521 .cassandra -f

522 exit

523 cd /opt/Cassandra/

524 ls

525 cd conf/

526 ls

527 cat cassandra.yaml

528 cd ..
529 cd bin

530 ls

531 sudo stop-server

532 sudo su stop-server

533 sudo sh stop-server

534 sudo sh cassandra

535 sudo sh stop-server

536 sudo stop-server

537 sudo stop-server run

538 ./stop-server run

539 cat stop-server

540 pgrep -u $user -f cassandra | xargs kill -9

541 whoami

542 pgrep -u root -f cassandra | xargs kill -9

543 ./stop-server run

544 sudo stop-server run

545 sudo sh cassandra

546 history

547 cd /opt/kairosdb/

548 ls

549 cd bin/

550 ls

551 ./kairosdb.sh run

552 netstat -plten |grep java

553 kill -9 6133

554 kill -9 6301

555 netstat -plten |grep java

556 exit
557 netstat -plten |grep java

558 exit

559 netstat -plten |grep java

560 kill 7545

561 kill 7667

562 netstat -plten |grep java

563 exit

564 cd /etc

565 ls -l

566 cat yum.conf

567 pwd

568 ls -lart

569 cat yum.conf

570 ls -l

571 vi yum.conf

572 netstat -plten |grep java

573 kill /java

574 kill 8948

575 kill 9050

576 netstat -plten |grep java

577 kill 9405

578 kill 9690

579 netstat -plten |grep java

580 exit

581 netstat -plten | grep java

582 kill 11591

583 kill 17603

584 netstat -plten | grep java


585 exit

586 yum install curl

587 sudo service grafana-server restart

588 curl http://10.240.226.11:3000/api/plugin-proxy/raintank-worldping-app/api/v2/quotas

589 curl "http://10.240.226.11:3000/api/plugin-proxy/raintank-worldping-app/api/v2/quotas"


-H "Accept-Encoding: gzip, deflate, sdch" -H "Accept-Language: en-US,en;q=0.8" -H "User-
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/55.0.2883.87 Safari/537.36" -H "Accept: application/json, text/plain, */*" -H "Referer:
http://10.240.226.11:3000/plugins/raintank-worldping-app/edit" -H "Cookie:
grafana_sess=9d6dd67ce2bda416; grafana_user=admin;
grafana_remember=989c624505e60cd9eb86dc508088fe1b89c4b142de0a3cee" -H
"Connection: keep-alive" --compressed

590 cd /etc/sysconfig/grafana-server

591 ls

592 sudo vi /etc/sysconfig/grafana-server

593 sudo service grafana-server restart

594 sudo vi /etc/sysconfig/grafana-server

595 sudo service grafana-server restart

596 exit

597 netstat -plten | grep java

598 kill 17913

599 kill 29552

600 exit

601 visudo

602 exit

603 systemctl status influxdb

604 systemctl stop influxdb

605 systemctl status influxdb

606 ls -la /var/lib/influxdb/

607 mv /var/lib/influxdb /opt/

608 ls -la /opt/


609 ls -la /opt/influxdb/

610 ln -s /var/lib/influxdb /opt/influxdb

611 ls -la /var/lib/influxdb

612 ln -s /opt/influxdb /var/lib/influxdb

613 ls -la /var/lib/influxdb

614 ls -la /var/lib/influxdb/

615 rm -rf /var/lib/influxdb/influxdb

616 ls -la /var/lib/influxdb/

617 df -h

618 history

619 systemctl status influxdb

620 systemctl start influxdb

621 systemctl status influxdb

622 df -h

623 systemctl status influxdb

624 hitsory | grep yum

625 history | grep yum

626 su - admin

627 vi /etc/influxdb/influxdb.conf

628 du -ch /opt/influxdb/

629 du -ch --max-depth=1 /opt/influxdb/

630 history

Vous aimerez peut-être aussi