WARN org.apache.zookeeper.server.quorum.QuorumCnxManager: Cannot open channel to 2 at election address xxxx/xx.xx.xx.xx:3888

zookeeper 기동 직후에 상기와 같은 메세지가 나오는 케이스의 경우에는
zookeeper는 시작하면 server끼리 연결 LEADER / FOLLOWER를 결정하게 됩니다. 이때. 
데이터 동기화 등 할 것을 시작 직후의 경우 Port가 Listen하고 있지 않아  연결되지 않고 이에 
연결 재 시도를 반복하면서 상기와 같은 메세지가 나오는 경우가 있습니다. 

물론 지속적으로 나온다면 문제가 있겠지만. 
기동직후에만 나온다면 무시해도 될듯합니다. 

출처 :

'Hadoop' 카테고리의 다른 글

HBase 데이터 Scan 및 Delete  (0) 2011.12.30
Hive Error  (0) 2011.12.26
Hadoop 인스톨 ②  (0) 2011.07.20
Hadoop 인스톨 ①  (0) 2011.07.19
Apache Hadoop이란?  (0) 2011.07.18

/usr/local/apache2/bin

httpd -V 

Server version: Apache/2.0.63

Server built:   Mar 21 2011 18:20:43

Server's Module Magic Number: 20020903:13

Server loaded:  APR 0.9.17, APR-UTIL 0.9.15

Compiled using: APR 0.9.17, APR-UTIL 0.9.15

Architecture:   64-bit

Server compiled with....

 -D APACHE_MPM_DIR="server/mpm/prefork"

 -D APR_HAS_SENDFILE

 -D APR_HAS_MMAP

 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

 -D APR_USE_SYSVSEM_SERIALIZE

 -D APR_USE_PTHREAD_SERIALIZE

 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

 -D APR_HAS_OTHER_CHILD

 -D AP_HAVE_RELIABLE_PIPED_LOGS

 -D HTTPD_ROOT="/usr/local/apache2"

 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"

 -D DEFAULT_PIDLOG="logs/httpd.pid"

 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

 -D DEFAULT_LOCKFILE="logs/accept.lock"

 -D DEFAULT_ERRORLOG="logs/error_log"

 -D AP_TYPES_CONFIG_FILE="conf/mime.types"

 -D SERVER_CONFIG_FILE="conf/httpd.conf"


'Java' 카테고리의 다른 글

quartz Jwatch  (0) 2012.07.17
enum equals string  (0) 2012.07.10
Installing Tomcat 6 on CentOS 5  (0) 2012.06.18
java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/Configuration  (0) 2012.06.12
Java에서 XML없이 SQL개발하기  (0) 2011.07.01


간단하다...라는 말로 표현 할 수있다.. 나름...

http://code.google.com/p/jwatch/


아래 와 같이 JMX 추가 하고  quartz export 하고 나면 나머지는 자동으로 처리된다. 

즉 소스를 사용하고 싶은곳에 넣은 다음 아래 내용과 함께 web.xml 을 세팅해주면 된다는 말.. 

-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=2911
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dorg.quartz.scheduler.jmx.export=true

Javaの列挙型(Enum)のequalsと==とtoStringAdd Star

恥ずかしながらすぐに忘れる…

static enum Number{
    ONE,
    TWO,
    THREE
}

public static void main(String args[]) {
    System.out.println("ONE equals Number.ONE            is " + "ONE".equals(Number.ONE));
    System.out.println("ONE equals Number.ONE.toString() is " + "ONE".equals(Number.ONE.toString()));
    System.out.println("ONE   ==   Number.ONE.toString() is " + ("ONE" == (Number.ONE.toString())));
}


実行結果

ONE equals Number.ONE            is false
ONE equals Number.ONE.toString() is true
ONE   ==   Number.ONE.toString() is true

文字列との比較はtoString()を使用



Enum#equals()

内部では「==」を使用している、なるほどね~

public final boolean equals(Object other) { 
    return this==other;

출처 : http://d.hatena.ne.jp/guangda/20100106/1262760915


http://wavded.tumblr.com/post/258713913/installing-tomcat-6-on-centos-5

http://yaplog.jp/guitarist_y/archive/108


yum install tomcat6*  tomcat관련 패키지 인스톨

yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps  특정 패키지만 인스툴

아래와 같은 에러가 발생 할 경우 해당 블로그에 적혀 있는대로 

rpm -Uvh'http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm'

--> Finished Dependency Resolution
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (rhel-x86_64-server-5)
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (rhel-x86_64-server-5)
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 from rhel-x86_64-server-5 has depsolving problems
  --> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (rhel-x86_64-server-5)
Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (rhel-x86_64-server-5)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

Consider a simple Xsctream example to create JSON out of the Bean:

Bean bean = new Bean();
bean
.addNames("John", "Doe");
bean
.addNames("Jane", "Doe");

XStream xstream = new XStream(new JettisonMappedXmlDriver());    
xstream
.setMode(XStream.NO_REFERENCES);

System.out.println(xstream.toXML(bean));

results in

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/Configuration
    at com
.thoughtworks.xstream.io.json.JettisonMappedXmlDriver.<init>(JettisonMappedXmlDriver.java:55)
    at
Main.main(Main.java:12)

Note that libraries are imported as they should be

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;

And proper jars are included

enter image description here

link|improve this question

feedback
  
 

2
down voteaccepted

You need jettison.jar from codehaus click this link



'Java' 카테고리의 다른 글

enum equals string  (0) 2012.07.10
Installing Tomcat 6 on CentOS 5  (0) 2012.06.18
Java에서 XML없이 SQL개발하기  (0) 2011.07.01
Fiddler post형식으로 테스트 데이터 보내기  (0) 2011.03.22
split(".")  (0) 2010.08.19



크롬에서 유튜브 동영상 다운로드 할때 

이거 만큼 편한 툴을 없을듯.. 

확장프로그램 검색해서.. 아마도 맞을듯.. 

[Chrome YouTube Downloader]


웹페이지 PDF 화 해서 다운로드 받는것

[PDFmyURL]

상단에서 P만 클릭하면 알아서 다운로드 까지 되는.. 완전 편하다는.

가끔 실패할때 빼고..


'날적이' 카테고리의 다른 글

PDFmyURL  (0) 2011.11.17
Hadoop 0.20.205.0 , Hive-0.7.1, Hbase-0.90.4  (0) 2011.11.10
멀티 브라우저를 지원하는 은행 서비스.. 우리 오픈 뱅킹  (0) 2011.07.11
블로그 어렵다...  (0) 2010.10.20
첫 글...  (0) 2010.06.01


java.io.FileNotFoundException: xxx.log (Too many open files)

참조 : http://blog.naver.com/01191879872/10085226074 

해당 에러 인해서, DBConnection 부분까지 연결 실패로 인해서.  

Error on getConnection : com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

에러가 발생하였다..

 

'리눅스' 카테고리의 다른 글

도스 텍스트를 유닉스 텍스트로  (0) 2014.03.04
우분트 게스트 확장  (0) 2013.09.17

import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.DailyRollingFileAppender;

Logger log = Logger.getLogger(GERPIfBox.class);

     String layout = "[%d{yyyy-MM-dd HH:mm:ss}] %-5p [%l] - %m%n";
     String logfile = "D:/PMS_APP/WEB-INF/bach_job/log/gerpif.log";
     String datepattern = ".yyyy-MM-dd";
     PatternLayout patternlayout = new PatternLayout(layout);
     
     DailyRollingFileAppender appender = null;
     try{
      appender = new DailyRollingFileAppender(patternlayout, logfile, datepattern);
     }catch(java.io.IOException ioex){
      ioex.printStackTrace();
     }
     
     log.addAppender(appender);


출처 : http://blog.naver.com/PostView.nhn?blogId=javasniper&logNo=130115803097 

'LogBack&Log4j' 카테고리의 다른 글

LogFile에 StackTrace를 남기고 싶을때.  (0) 2010.08.26
log시간별로 만들기  (0) 2010.08.25

+ Recent posts