This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /dfs/jn | |
sudo chown -R hdfs:hdfs /dfs/jn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>dfs.nameservices</name> | |
<value>study</value> | |
</property> | |
<property> | |
<name>dfs.ha.namenodes.study</name> | |
<value>nn1,nn2</value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inspector ran on all 4 hosts. | |
The following failures were observed in checking hostnames... | |
No errors were found while looking for conflicting init scripts. | |
No errors were found while checking /etc/hosts. | |
All hosts resolved localhost to 127.0.0.1. | |
All hosts checked resolved each other's hostnames correctly and in a timely manner. | |
Host clocks are approximately in sync (within ten minutes). | |
Host time zones are consistent across the cluster. | |
No users or groups are missing. | |
No conflicts detected between packages and parcels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@bigtop1 ~]$ yum list installed | grep @Bigtop | |
bigtop-jsvc.x86_64 1.0.10.5-1.el6 @Bigtop | |
bigtop-utils.noarch 0.7.0.5-1.el6 @Bigtop | |
hadoop.x86_64 2.0.6.5-1.el6 @Bigtop | |
hadoop-client.x86_64 2.0.6.5-1.el6 @Bigtop | |
hadoop-debuginfo.x86_64 2.0.6.5-1.el6 @Bigtop | |
hadoop-doc.x86_64 2.0.6.5-1.el6 @Bigtop | |
hadoop-hdfs.x86_64 2.0.6.5-1.el6 @Bigtop | |
2.0.6.5-1.el6 @Bigtop | |
hadoop-hdfs-fuse.x86_64 2.0.6.5-1.el6 @Bigtop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@bigtop1 ~]$ sudo jps | |
9040 QuorumPeerMain | |
9431 SecondaryNameNode | |
13624 HRegionServer | |
14495 ThriftServer | |
9888 NameNode | |
14043 HMaster | |
14909 Jps | |
10315 DataNode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@bigtop1 usr]# jps | |
12751 QuorumPeerMain | |
15524 Jps | |
13192 NameNode | |
13758 DataNode | |
[root@bigtop2 vagrant]# jps | |
9224 Jps | |
12640 NameNode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@bigtop1 usr]# yum list installed | grep Bigtop #(Active NN) | |
bigtop-jsvc.x86_64 1.0.10.5-1.el6 @Bigtop | |
bigtop-utils.noarch 0.7.0.5-1.el6 @Bigtop | |
hadoop.x86_64 2.0.6.5-1.el6 @Bigtop | |
hadoop-hdfs.x86_64 2.0.6.5-1.el6 @Bigtop | |
2.0.6.5-1.el6 @Bigtop | |
2.0.6.5-1.el6 @Bigtop | |
hbase.noarch 0.94.12.5-1.el6 @Bigtop | |
hbase-master.noarch 0.94.12.5-1.el6 @Bigtop | |
0.94.12.5-1.el6 @Bigtop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable eth0 | |
cd /etc/sysconfig/network-scripts/ | |
sed -i -e 's@^ONBOOT="no@ONBOOT="yes@' ifcfg-eth0 | |
ifup eth0 | |
# update repository (may not required.) | |
# yum update | |
# install openjdk | |
yum install java-1.7.0-openjdk.x86_64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MySQL sample database | |
// https://dev.mysql.com/doc/employee/en/employees-installation.html | |
// https://launchpad.net/test-db/ | |
project --topLevelPackage org.phstudy --projectName DBRE --java 6 --packaging JAR | |
persistence setup --database MYSQL --provider HIBERNATE --userName root --databaseName employees | |
database reverse engineer --package ~.model --schema PUBLIC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO [main] (LogHelper.java:46) - HHH000204: Processing PersistenceUnitInfo [ | |
name: pu-hibernate | |
...] | |
INFO [main] (Version.java:54) - HHH000412: Hibernate Core {4.3.1.Final} | |
INFO [main] (Environment.java:239) - HHH000206: hibernate.properties not found | |
INFO [main] (Environment.java:346) - HHH000021: Bytecode provider name : javassist | |
INFO [main] (JavaReflectionManager.java:66) - HCANN000001: Hibernate Commons Annotations {4.0.4.Final} | |
WARN [main] (DriverManagerConnectionProviderImpl.java:93) - HHH000402: Using Hibernate built-in connection pool (not for production use!) | |
INFO [main] (DriverManagerConnectionProviderImpl.java:166) - HHH000401: using driver [org.postgresql.Driver] at URL [jdbc:postgresql:study?stringtype=unspecified] | |
INFO [main] (DriverManagerConnectionProviderImpl.java:175) - HHH000046: Connection properties: {user=study} |