Member since
09-18-2015
3274
Posts
1159
Kudos Received
426
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2120 | 11-01-2016 05:43 PM | |
6422 | 11-01-2016 05:36 PM | |
4106 | 07-01-2016 03:20 PM | |
7043 | 05-25-2016 11:36 AM | |
3422 | 05-24-2016 05:27 PM |
10-06-2015
03:24 PM
It will be a troubleshooting exercise. Could you check ambari-server , agent and supervisor logs? Please do check agent versions too. @sshaw@hortonworks.com
... View more
10-06-2015
02:08 PM
1 Kudo
@sheetal@hortonworks.com Please see /etc/ambari-agent/conf/ambari-agent.ini This is reference to old doc but see if it helps. link I would like to get more information on this issue. for example: however everywhere else it is being used as FQDN - Could you elaborate more on this?
... View more
10-06-2015
01:17 PM
6 Kudos
XML:
[hdfs@sandbox ~]$ hdfs dfs -mkdir -p /test/sequences
[hdfs@sandbox ~]$
[hdfs@sandbox ~]$ vi sample.xml
<sequences period=”5″>
<moment game-clock=”300.00″ time=”1433732215737″ game-event-id=”” shot-clock=”24.00″ locations=”-1,-1,96.95182,1.98648,5.75987;9,173004,45.54661,17.35545,0;9,338365,24.04722,25.67399,0;9,457611,46.95292,27.93478,0;9,468895,48.59834,33.96586,0;9,552336,33.73381,24.05929,0;5,214152,59.26872,24.12006,0;5,253997,45.71551,17.41071,0;5,457186,48.59834,33.96586,0;5,531447,78.09629,34.24688,0;5,552806,47.79678,22.8155,0″/>
<moment game-clock=”300.00″ time=”1433732215794″ game-event-id=”” shot-clock=”24.00″ locations=”-1,-1,97.79683,.89407,3.67626;9,173004,45.62283,17.34854,0;9,338365,24.04248,25.6784,0;9,457611,46.84978,27.8463,0;9,468895,48.52017,33.89189,0;9,552336,33.74064,24.03493,0;5,214152,59.27282,24.07895,0;5,253997,45.87101,17.38532,0;5,457186,48.52017,33.89189,0;5,531447,78.06394,34.2155,0;5,552806,47.8269,22.81393,0″/>
<moment game-clock=”300.00″ time=”1433732215829″ game-event-id=”” shot-clock=”24.00″ locations=”-1,-1,97.78946,.91006,3.68332;9,173004,45.61995,17.35703,0;9,338365,24.03815,25.68402,0;9,457611,46.71077,27.71191,0;9,468895,48.37095,33.77756,0;9,552336,33.74769,24.00829,0;5,214152,59.27627,24.06055,0;5,253997,46.00077,17.36555,0;5,457186,48.37095,33.77756,0;5,531447,78.0439,34.20521,0;5,552806,47.84297,22.83292,0″/>
<moment game-clock=”300.00″ time=”1433732215856″ game-event-id=”” shot-clock=”24.00″ locations=”-1,-1,97.73786,1.02206,3.73271;9,173004,45.57851,17.34979,0;9,338365,24.04207,25.61049,0;9,457611,46.63871,27.56226,0;9,468895,48.2033,33.7142,0;9,552336,33.75497,23.97935,0;5,214152,59.27906,24.06485,0;5,253997,46.10481,17.35141,0;5,457186,48.29748,33.63262,0;5,531447,78.03618,34.216,0;5,552806,47.84498,22.87247,0″/>
<moment game-clock=”300.00″ time=”1433732215905″ game-event-id=”” shot-clock=”24.00″ locations=”-1,-1,97.59781,1.32606,3.8668;9,173004,45.57865,17.34643,0;9,338365,24.04224,25.61058,0;9,457611,46.56615,27.44014,0;9,468895,48.01722,33.7018,0;9,552336,33.76247,23.94813,0;5,214152,59.27976,24.07223,0;5,253997,46.26668,17.38672,0;5,457186,48.29974,33.45708,0;5,531447,78.02931,34.2208,0;5,552806,47.86752,22.85019,0″/>
</sequences>
[hdfs@sandbox ~]$
hdfs dfs -put sample.xml /test/sequences/
[hdfs@sandbox ~]$
[hdfs@sandbox ~]$ wget http://search.maven.org/remotecontent?filepath=com/ibm/spss/hive/serde2/xml/hivexmlserde/1.0.5.3/hivexmlserde-1.0.5.3.jar
[hdfs@sandbox ~]$ mv remotecontent?filepath=com%2Fibm%2Fspss%2Fhive%2Fserde2%2Fxml%2Fhivexmlserde%2F1.0.5.3%2Fhivexmlserde-1.0.5.3.jar hivexmlserde-1.0.5.3.jar
[
hdfs@sandbox ~]$ pwd
/home/hdfs
[hdfs@sandbox ~]$ mv hivexmlserde-1.0.5.3.jar /tmp
hive
hive> add jar /tmp/hivexmlserde-1.0.5.3.jar;
Added [/tmp/hivexmlserde-1.0.5.3.jar] to class path
Added resources: [/tmp/hivexmlserde-1.0.5.3.jar]
hive> drop table sequences;
OK
Time taken: 3.717 seconds
CREATE EXTERNAL TABLE sequences(
gameclock double,
time bigint,
gameeventid string,
shotclock double,
locations string
)
ROW FORMAT SERDE ‘com.ibm.spss.hive.serde2.xml.XmlSerDe’
WITH SERDEPROPERTIES (
“column.xpath.gameclock”=”/moment/@game-clock”,
“column.xpath.time”=”/moment/@time”,
“column.xpath.gameeventid”=”/moment/@game-event-id”,
“column.xpath.shotclock”=”/moment/@shot-clock”,
“column.xpath.locations”=”/moment/@locations”
)
STORED AS
INPUTFORMAT ‘com.ibm.spss.hive.serde2.xml.XmlInputFormat’
OUTPUTFORMAT ‘org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat’
LOCATION ‘/test/sequences’
TBLPROPERTIES (
“xmlinput.start”=”<moment “,
“xmlinput.end”=”/”
)
;
OK
Time taken: 2.871 seconds
hive>
hive> select * from sequences;
OK
300.01433732215737 24.0 -1,-1,96.95182,1.98648,5.75987;9,173004,45.54661,17.35545,0;9,338365,24.04722,25.67399,0;9,457611,46.95292,27.93478,0;9,468895,48.59834,33.96586,0;9,552336,33.73381,24.05929,0;5,214152,59.26872,24.12006,0;5,253997,45.71551,17.41071,0;5,457186,48.59834,33.96586,0;5,531447,78.09629,34.24688,0;5,552806,47.79678,22.8155,0
300.01433732215794 24.0 -1,-1,97.79683,.89407,3.67626;9,173004,45.62283,17.34854,0;9,338365,24.04248,25.6784,0;9,457611,46.84978,27.8463,0;9,468895,48.52017,33.89189,0;9,552336,33.74064,24.03493,0;5,214152,59.27282,24.07895,0;5,253997,45.87101,17.38532,0;5,457186,48.52017,33.89189,0;5,531447,78.06394,34.2155,0;5,552806,47.8269,22.81393,0
300.01433732215829 24.0 -1,-1,97.78946,.91006,3.68332;9,173004,45.61995,17.35703,0;9,338365,24.03815,25.68402,0;9,457611,46.71077,27.71191,0;9,468895,48.37095,33.77756,0;9,552336,33.74769,24.00829,0;5,214152,59.27627,24.06055,0;5,253997,46.00077,17.36555,0;5,457186,48.37095,33.77756,0;5,531447,78.0439,34.20521,0;5,552806,47.84297,22.83292,0
300.01433732215856 24.0 -1,-1,97.73786,1.02206,3.73271;9,173004,45.57851,17.34979,0;9,338365,24.04207,25.61049,0;9,457611,46.63871,27.56226,0;9,468895,48.2033,33.7142,0;9,552336,33.75497,23.97935,0;5,214152,59.27906,24.06485,0;5,253997,46.10481,17.35141,0;5,457186,48.29748,33.63262,0;5,531447,78.03618,34.216,0;5,552806,47.84498,22.87247,0
300.01433732215905 24.0 -1,-1,97.59781,1.32606,3.8668;9,173004,45.57865,17.34643,0;9,338365,24.04224,25.61058,0;9,457611,46.56615,27.44014,0;9,468895,48.01722,33.7018,0;9,552336,33.76247,23.94813,0;5,214152,59.27976,24.07223,0;5,253997,46.26668,17.38672,0;5,457186,48.29974,33.45708,0;5,531447,78.02931,34.2208,0;5,552806,47.86752,22.85019,0
Time taken: 2.8 seconds,
Fetched: 5 row(s)
hive>
> select gameclock, time,gameeventid, shotclock, concat(substr(locations,1,10), ‘ …’) as sequence_truncated_for_email_to_anoop from sequences;
OK
300.01433732215737 24.0 -1,-1,96.9 …
300.01433732215794 24.0 -1,-1,97.7 …
300.01433732215829 24.0 -1,-1,97.7 …
300.01433732215856 24.0 -1,-1,97.7 …
300.01433732215905 24.0 -1,-1,97.5 …
Time taken: 0.898 seconds, Fetched: 5 row(s)
hive>
... View more
Labels:
10-06-2015
01:06 PM
4 Kudos
@pardeep.kumar@hortonworks.com 1) Postgres - As mentioned earlier 2) Mysql Login as root user mysql -u root -p ( press enter, it will ask for password) use mysql; SET PASSWORD FOR 'admin'@'localhost'= PASSWORD('admin'); OR UPDATE mysql.user SET Password=PASSWORD('admin') WHERE User='admin' AND Host='localhost'; localhost can be FQDN based on mysql setup
3) Oracle Login as sys or system user sqlplus sys as sysdba alter user admin identified by 'admin';
... View more
10-06-2015
12:52 PM
@wgonzalez@hortonworks.com ConnectException: Connection refused Please notice that and check if you are able to connect to source/target
... View more
10-06-2015
12:49 PM
5 Kudos
*** NameNode Exercise ***
login as hdfs user
*** TestDFSIO Write Test *** # -fileSize argument is, by default, in units of MB. This should write 10 GB of files
hadoop jar /usr/hdp/current/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-*tests.jar TestDFSIO -write -nrFiles 100 -fileSize 100
TestDFSIO Read Test
hadoop jar /usr/hdp/current/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-*tests.jar TestDFSIO -read -nrFiles 100 -fileSize 100
TestDFSIO Cleanup
hadoop jar /usr/hdp/current/hadoop-mapreduce/hadoop-mapreduce-client-jobclient-*tests.jar TestDFSIO -clean Read/Write Data
*** TeraGen *** hdfs dfs -mkdir /benchmarks
hdfs dfs -mkdir /benchmarks/terasort # This will generate 1,000,000 100 byte records as input for Terasort
hadoop jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-examples.jar teragen 1000000 /benchmarks/terasort/terasort-input *** TeraSort *** # Sort the 1,000,000 records generated by TeraGen hadoop jar /usr/hdp/current/hadoop-mapreduce/hadoop-mapreduce-examples.jar terasort /benchmarks/terasort/terasort-input /benchmarks/terasort/terasort-output *** TeraValidate *** # Validate that the sort was successful and correct hadoop jar /usr/hdp/current/hadoop-mapreduce/hadoop-mapreduce-examples.jar teravalidate /benchmarks/terasort/terasort-output /benchmarks/terasort/teravalidate-output
... View more
10-02-2015
02:57 AM
6 Kudos
YCSB is a very popular tool for Hbase benchmarking We also use the tools called PerformanceEvaluation and LoadTestTool that ship with HBase. `bin/hbase pe` and `bin/hbase ltt` should invoke them respectively.
... View more
09-30-2015
06:05 PM
5 Kudos
Setup Oracle schema using link CSV dump of postgres tables. example use oracle sqlldr to load data into oracle table Or You can try this
... View more
09-30-2015
02:00 AM
1 Kudo
Please see this SAML Knox Blog Knox - Enterprise integration Support LDAP, Active Directory, SSO, SAML and other authentication systems
... View more
09-29-2015
07:39 PM
@terry@hortonworks.com
Could you provide log files? Let's start with /var/log/ambari-server/ambari-server.log
... View more
- « Previous
- Next »