Hadoop, HBase, Hive, zookeeper default port description
Component
Daemon
Port
Configuration
Description
Hdfs
DataNode
50010
Dfs.datanode.address
Datanode service port for data transfer
50075
Dfs.datanode.http.address
Port for HTTP Service
50475
Dfs.datanode.https.address
Ports for HTTPS servic
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
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
first, the basic Environment configuration
I use three virtual hosts, the operating system is CENTOS7. Hadoop version 2.6, hive2.1.1 version (can be downloaded to the official website), JDK7, Scala2.11.0, zookeeper3.4.5 II, installation tutorial
(1) Installation of JDK
From the official website to download the JDK to the local, and then through the FTP to the Linux system, directly decompression, decompres
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
(' 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
;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
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
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 local hadoop function is added in hive0.7, that is, it is executed locally when the data volume is small, without the distributed mapred.In this way, the execution speed of small tasks will be greatly improved.
What kind of tasks will adopt local hadoop? It is controlled by a hive parameter.Hive.exe C. mode. Local. Auto. inputbytes. Max
If the processed d
I. Job input and output optimizationUse Muti-insert, union All, the union all of the different tables equals multiple inputs, union all of the same table, quite map outputExample Second, data tailoring2.1. Column ClippingWhen hive reads the data, it can query only the columns that are needed, ignoring the other columns. You can even use an expression that is being expressed.See. Http://www.cnblogs.com/bjlhx/p/6946202.html2.2. Partition clippingReduce
Learn this article for reference:http://www.shareditor.com/blogshow/?blogId=96Machine learning, data mining and other large-size processing are inseparable from a variety of open-source distributed systems,Hadoop for distributed storage and Map-reduce computing,Spark is used for distributed machine learning,Hive is a distributed database,HBase is a distributed KV system,Seemingly unrelated, they're all base
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.