Modified In the hadoop/etc/hadoop/core-site.xml FileAfter the attribute value is set, the original hive data cannot be found. You need to change the location attribute in the SDS table in the hive MetaStore database and change the corresponding HDFS parameter value to a new value.After modifying the
Hadoop
Unzip the GZ file to a text file
$ Hadoop fs-text/hdfs_path/compressed_file.gz | Hadoop Fs-put-/tmp/uncompressed-file.txt
Unzip the local file Gz file and upload it to HDFs
$ gunzip-c filename.txt.gz | Hadoop Fs-put-/tmp/filename.txt
Using awk to process CSV files, refer to using awk and friends with
get out of this safe mode
1. Modify dfs.safemode.threshold.pct to a relatively small value, the default is 0.999.
2. Hadoop dfsadmin-safemode leave command forced to leave
Http://bbs.hadoopor.com/viewthread.php?tid=61extra=page=1
The user can manipulate safe mode by Dfsadmin-safemode value, as described in parameter value:
Enter-Enter Safe mode
Leave-Force Namenode to leave Safe mode
Get-Returns information on whether Safe mode is open
Wait-waits un
[:nnnnn], blue part
The follower is used to connect to the leader and only listens on the leader on the port.
3888
/etc/zookeeper/conf/zoo.cfg in server.x=[hostname]:nnnnn[:nnnnn], blue part
Used for the leader election. Required only if ELECTIONALG is 3 (default).
All port protocols are based on TCP.For all Hadoop daemon that exist in the Web UI (HTTP service), there are URLs like:/logsList of log fil
records.NoteThere's a sentence in this journal14/12/05 08:49:46 INFO MapReduce. Job:the URL to track the job:http://hadoop01:8088/proxy/application_1406097234796_0037/This means you can use the browser to access the address to see the implementation of the task, if your task for a long time the card master is not finished is wrong, you can go to this address to see the detailed error logView ResultsMysql> SELECT * from employee;+--------+----+-------+| Rowkey | ID | Name |+--------+----+------
Why does data analysis generally use java instead of hadoop, flume, and hive APIs to process related services? Why does data analysis generally use java instead of hadoop, flume, and hive APIs to process related services?
Reply content:
Why does data analysis generally use java instead of
Testhivedrivertable1terry2alex3jimmy4mike5katerunning:select count (1) from TesthivedrivertableIn fact, the Java call is very simple, that is, you execute the statement in the hive shell with JDBC to do it again, so you transfer the past statement of the environment is the Hive server machine, which is written in the path from the hive server host root directory
;Build Bucket TableCREATE TABLE par_table (viewtime INT, UserID BIGINT, Page_url string, referrer_url string, IP string COMMENT ' IP Address of the User ') COMMENT ' the Page view table ' partitioned by (date STRING, pos string) CLUSTERED by (userid ) SORTED by (Viewtime) to BUCKETS ROW FORMAT delimited ' \ t ' fields TERMINATED by ' \ n ' STORED as sequencefile; Create a table and create an indexed field DSHive> CREATE TABLE invites (foo INT, bar string) partitioned by (DS string); Copy an emp
。 Here you can see just a simple section of SQL. Almost can't see what task is running in detail.At this point can open a application. Click Tracking URL:applicationmasterGo to the MapReduce Job job_1409xxxx,job pageClick on the left side of the configurationThere are all the corresponding parameters for this job. In the search box in the upper-right corner, type string,Where key is hive.query.string the corresponding value value is the complete hive
slow.Linux Command for counting the size of all directories and total directories in a directory
du -h --max-depth=1 /home/crazyant/
Count the size of all files in the crazyant directory. Here I only want to see the size of a directory. Therefore, if-max-depth = 1 is added, this command recursively lists the file sizes of all subdirectories.
Use of the scp command:
Copy from local to remote: scp-r? Logs_jx pss@crazyant.net/home/pss/logsHive command hive
Tags: style io color ar using SP data on ArtA colleague summarizes the hive SQL optimizations Hive is a tool that generates a string resolution that conforms to SQL syntax to generate mapreduce that can be executed on Hadoop. Using hive to design SQL as many of the features of distributed computing as possible differs
(' 123456 ') where user= ' root ';//set root user password mysql> Select Host,user,password from User where user= ' root ';mysql> flush privileges;mysql> exitIf you are not able to connect remotely, turn off the firewall/etc/rc.d/init.d/iptables stopTo manually install a later version, refer to:Http://www.cnblogs.com/zhoulf/archive/2013/01/25/zhoulf.htmlHttp://www.cnblogs.com/xiongpq/p/3384681.htmlCentOS Installation HiveCd/usr/localTAR-ZXVF hive-0.1
Data storage (bucket table) bucket table for hive
A bucket table is a hash of the data, which is then stored in a different file.
For example, to create three buckets, the principle of creating a bucket is to create a bucket according to the name of the middle school student in the left table. In this way, the left side of the data in the bucket can be used to hash the student name, the same hash value of the column stored in the same bu
I. Purpose
It mainly tests the relationship between the rate of distributed computing in the hadoop cluster and the data size and the number of computing nodes.
II. Environment
Hardware: inspur nf5220.
System: centos 6.1
The master node allocates 4 CPU and 13 Gb memory on the master machine centos.
The remaining three slave nodes are on the KVM virtual machine of the master machine, and the system is centos6.1. Hardware configuration: Memory 1 GB, 4
(like Hadoop streaming). Similarly-streaming can used on the reduce side (please see the Hive Tutorial or examples)2. Partition-based Queries• The General SELECT query scans the entire table and uses the partitioned by clause to build the table, and the query can take advantage of the features of the partition pruning (input pruning)Hive The current implementati
Training Big Data architecture development, mining and analysis!from zero-based to advanced, one-to-one technical training! Full Technical guidance! [Technical qq:2937765541] https://item.taobao.com/item.htm?id=535950178794-------------------------------------------------------------------------------------Java Internet Architect Training!https://item.taobao.co
Bin/hive prompts "XXX illegal hadoop version: Unknown (expected a. B. * Format)" similar to this problem,
View code
public static String getMajorVersion() { String vers = VersionInfo.getVersion(); String[] parts = vers.split("\\."); if (parts.length
String vers = versioninfo. getversion (); no value is obtained here.
View "Import org. Apache. hadoop. u
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.