oozie启动问题:Could not initialize service [org.apache.oozie.service.HadoopAccessorService]

FATAL Services:533 - USER[-] GROUP[-] E0100: Could not initialize service [org.apache.oozie.service.HadoopAccessorService], org.xml.sax.SAXParseException; Premature end of file.


oozie-site.xml文件如下:





    

    
        oozie.service.ActionService.executor.ext.classes
        
            org.apache.oozie.action.email.EmailActionExecutor,
            org.apache.oozie.action.hadoop.HiveActionExecutor,
            org.apache.oozie.action.hadoop.ShellActionExecutor,
            org.apache.oozie.action.hadoop.SqoopActionExecutor,
            org.apache.oozie.action.hadoop.DistcpActionExecutor
        
    

    
        oozie.service.SchemaService.wf.ext.schemas
        shell-action-0.1.xsd,shell-action-0.2.xsd,email-action-0.1.xsd,hive-action-0.2.xsd,hive-action-0.3.xsd,sqoop-action-0.2.xsd,sqoop-action-0.3.xsd,ssh-action-0.1.xsd,distcp-action-0.1.xsd
    

    
        oozie.system.id
        oozie-${user.name}
        
            The Oozie system ID.
        
    

    
        oozie.systemmode
        NORMAL
        
            System mode for  Oozie at startup.
        
    

    
        oozie.service.AuthorizationService.security.enabled
        false
        
            Specifies whether security (user name/admin role) is enabled or not.
            If disabled any user can manage Oozie system and manage any job.
        
    

    
        oozie.service.AuthorizationService.authorization.enabled
        false
        
            Specifies whether security (user name/admin role) is enabled or not.
            If disabled any user can manage Oozie system and manage any job.
        
    

    
        oozie.service.PurgeService.older.than
        30
        
            Jobs older than this value, in days, will be purged by the PurgeService.
        
    

    
        oozie.service.PurgeService.purge.interval
        3600
        
            Interval at which the purge service will run, in seconds.
        
    

    
        oozie.service.CallableQueueService.queue.size
        10000
        Max callable queue size
    

    
        oozie.service.CallableQueueService.threads
        10
        Number of threads used for executing callables
    

    
        oozie.service.CallableQueueService.callable.concurrency
        3
        
            Maximum concurrency for a given callable type.
            Each command is a callable type (submit, start, run, signal, job, jobs, suspend,resume, etc).
            Each action type is a callable type (Map-Reduce, Pig, SSH, FS, sub-workflow, etc).
            All commands that use action executors (action-start, action-end, action-kill and action-check) use
            the action type as the callable type.
        
    

    
		oozie.service.coord.normal.default.timeout
		120
		Default timeout for a coordinator action input check (in minutes) for normal job.
            -1 means infinite timeout
	

    
        oozie.db.schema.name
        oozie
        
            Oozie DataBase Name
        
    

    
        oozie.service.JPAService.create.db.schema
        true
        
            Creates Oozie DB.

            If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP.
            If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.
        
    

    
        oozie.service.JPAService.jdbc.driver
        com.mysql.jdbc.Driver
        
            JDBC driver class.
        
    

    
        oozie.service.JPAService.jdbc.url
        jdbc:mysql://localhost:3306/oozie
        
            JDBC URL.
        
    

    
        oozie.service.JPAService.jdbc.username
        oozie
        
            DB user name.
        
    

    
        oozie.service.JPAService.jdbc.password
        oozie
        
            DB user password.

            IMPORTANT: if password is emtpy leave a 1 space string, the service trims the value,
                       if empty Configuration assumes it is NULL.
        
    

    
        oozie.service.JPAService.pool.max.active.conn
        10
        
             Max number of connections.
        
    

    
        oozie.service.HadoopAccessorService.kerberos.enabled
        false
        
            Indicates if Oozie is configured to use Kerberos.
        
    

    
        local.realm
        LOCALHOST
        
            Kerberos Realm used by Oozie and Hadoop. Using 'local.realm' to be aligned with Hadoop configuration
        
    

    
        oozie.service.HadoopAccessorService.keytab.file
        ${user.home}/oozie.keytab
        
            Location of the Oozie user keytab file.
        
    

    
        oozie.service.HadoopAccessorService.kerberos.principal
        ${user.name}/localhost@${local.realm}
        
            Kerberos principal for Oozie service.
        
    

    
        oozie.service.HadoopAccessorService.jobTracker.whitelist
         
        
            Whitelisted job tracker for Oozie service.
        
    

    
        oozie.service.HadoopAccessorService.nameNode.whitelist
         
        
            Whitelisted job tracker for Oozie service.
        
    

    
        oozie.service.HadoopAccessorService.hadoop.configurations
        *=/etc/hadoop/conf
        
            Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
            the Hadoop service (JobTracker, HDFS). The wildcard '*' configuration is
            used when there is no exact match for an authority. The HADOOP_CONF_DIR contains
            the relevant Hadoop *-site.xml files. If the path is relative is looked within
            the Oozie configuration directory; though the path can be absolute (i.e. to point
            to Hadoop client conf/ directories in the local filesystem.
        
    

    
        oozie.service.WorkflowAppService.system.libpath
        /user/${user.name}/share/lib
        
            System library path to use for workflow applications.
            This path is added to workflow application if their job properties sets
            the property 'oozie.use.system.libpath' to true.
        
    

    
        use.system.libpath.for.mapreduce.and.pig.jobs
        false
        
            If set to true, submissions of MapReduce and Pig jobs will include
            automatically the system library path, thus not requiring users to
            specify where the Pig JAR files are. Instead, the ones from the system
            library path are used.
        
    

    
        oozie.authentication.type
        simple
        
            Defines authentication used for Oozie HTTP endpoint.
            Supported values are: simple | kerberos | #AUTHENTICATION_HANDLER_CLASSNAME#
        
    

    
        oozie.authentication.token.validity
        36000
        
            Indicates how long (in seconds) an authentication token is valid before it has
            to be renewed.
        
    

    
        oozie.authentication.signature.secret
        oozie
        
            The signature secret for signing the authentication tokens.
            If not set a random secret is generated at startup time.
            In order to authentiation to work correctly across multiple hosts
            the secret must be the same across al the hosts.
        
    

    
      oozie.authentication.cookie.domain
      
      
        The domain to use for the HTTP cookie that stores the authentication token.
        In order to authentiation to work correctly across multiple hosts
        the domain must be correctly set.
      
    

    
        oozie.authentication.simple.anonymous.allowed
        true
        
            Indicates if anonymous requests are allowed.
            This setting is meaningful only when using 'simple' authentication.
        
    

    
        oozie.authentication.kerberos.principal
        HTTP/localhost@${local.realm}
        
            Indicates the Kerberos principal to be used for HTTP endpoint.
            The principal MUST start with 'HTTP/' as per Kerberos HTTP SPNEGO specification.
        
    

    
        oozie.authentication.kerberos.keytab
        ${oozie.service.HadoopAccessorService.keytab.file}
        
            Location of the keytab file with the credentials for the principal.
            Referring to the same keytab file Oozie uses for its Kerberos credentials for Hadoop.
        
    

    
        oozie.authentication.kerberos.name.rules
        DEFAULT
        
            The kerberos names rules is to resolve kerberos principal names, refer to Hadoop's
            KerberosName for more details.
        
    

    

    

    

    
        oozie.service.ProxyUserService.proxyuser.hue.hosts
        *
    

    
        oozie.service.ProxyUserService.proxyuser.hue.groups
        *
    

    
        oozie.action.mapreduce.uber.jar.enable
        true
    

    
     	oozie.service.HadoopAccessorService.supported.filesystems
       hdfs,viewfs
    



[root@localhost conf]# service oozie start

Setting OOZIE_HOME:          /usr/lib/oozie
Sourcing:                    /usr/lib/oozie/bin/oozie-env.sh
  setting OOZIE_CONFIG=/etc/oozie/conf
  setting OOZIE_DATA=/var/lib/oozie
  setting OOZIE_LOG=/var/log/oozie
  setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
  setting CATALINA_TMPDIR=/var/lib/oozie
  setting CATALINA_PID=/var/run/oozie/oozie.pid
  setting CATALINA_BASE=/usr/lib/oozie/oozie-server-0.20
  setting CATALINA_OPTS=-Xmx1024m
  setting OOZIE_HTTPS_PORT=11443
  setting OOZIE_HTTPS_KEYSTORE_PASS=password
  setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.port=${OOZIE_HTTPS_PORT}"
  setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.keystore.pass=${OOZIE_HTTPS_KEYSTORE_PASS}"
Using   OOZIE_CONFIG:        /etc/oozie/conf
Sourcing:                    /etc/oozie/conf/oozie-env.sh
  setting OOZIE_CONFIG=/etc/oozie/conf
  setting OOZIE_DATA=/var/lib/oozie
  setting OOZIE_LOG=/var/log/oozie
  setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
  setting CATALINA_TMPDIR=/var/lib/oozie
  setting CATALINA_PID=/var/run/oozie/oozie.pid
  setting CATALINA_BASE=/usr/lib/oozie/oozie-server-0.20
  setting CATALINA_OPTS=-Xmx1024m
  setting OOZIE_HTTPS_PORT=11443
  setting OOZIE_HTTPS_KEYSTORE_PASS=password
  setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.port=${OOZIE_HTTPS_PORT}"
  setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.keystore.pass=${OOZIE_HTTPS_KEYSTORE_PASS}"
Setting OOZIE_CONFIG_FILE:   oozie-site.xml
Using   OOZIE_DATA:          /var/lib/oozie
Using   OOZIE_LOG:           /var/log/oozie
Setting OOZIE_LOG4J_FILE:    oozie-log4j.properties
Setting OOZIE_LOG4J_RELOAD:  10
Setting OOZIE_HTTP_HOSTNAME: localhost
Setting OOZIE_HTTP_PORT:     11000
Setting OOZIE_ADMIN_PORT:     11001
Setting OOZIE_BASE_URL:      http://localhost:11000/oozie
Using   CATALINA_BASE:       /usr/lib/oozie/oozie-server-0.20
Setting CATALINA_OUT:        /var/log/oozie/catalina.out
Using   CATALINA_PID:        /var/run/oozie/oozie.pid

Using   CATALINA_OPTS:       -Xmx1024m -Doozie.https.port=11443 -Doozie.https.keystore.pass=password -Dderby.stream.error.file=/var/log/oozie/derby.log
Adding to CATALINA_OPTS:     -Doozie.home.dir=/usr/lib/oozie -Doozie.config.dir=/etc/oozie/conf -Doozie.log.dir=/var/log/oozie -Doozie.data.dir=/var/lib/oozie -Doozie.config.file=oozie-site.xml -Doozie.log4j.file=oozie-log4j.properties -Doozie.log4j.reload=10 -Doozie.http.hostname=localhost -Doozie.admin.port=11001 -Doozie.http.port=11000 -Doozie.base.url=http://localhost:11000/oozie

Using CATALINA_BASE:   /usr/lib/oozie/oozie-server-0.20
Using CATALINA_HOME:   /usr/lib/bigtop-tomcat
Using CATALINA_TMPDIR: /var/lib/oozie
Using JRE_HOME:        /usr/java/jdk1.7.0_25/jre
Using CLASSPATH:       /usr/lib/bigtop-tomcat/bin/bootstrap.jar
Using CATALINA_PID:    /var/run/oozie/oozie.pid


[root@localhost conf]#  oozie admin -oozie http://localhost:11000/oozie -status
Error: IO_ERROR : java.net.ConnectException: Connection refused


[root@localhost oozie]# cat oozie.log
2014-03-18 04:22:27,072  INFO XLogService:539 - 
 ******************************************************************************* 
  STARTUP MSG: Oozie BUILD_VERSION [3.3.0-cdh4.2.1] compiled by [jenkins] on [2013.04.22-19:38:39GMT]
  STARTUP MSG:       revision [unavailable]@[unavailable]
*******************************************************************************
2014-03-18 04:22:27,076  INFO XLogService:539 - Log4j configuration file [oozie-log4j.properties]
2014-03-18 04:22:27,076  INFO XLogService:539 - Log4j configuration file loaded from [/etc/oozie/conf]
2014-03-18 04:22:27,077  INFO XLogService:539 - Log4j reload interval [10 sec]
2014-03-18 04:22:27,093  INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie home dir  [/usr/lib/oozie]
2014-03-18 04:22:27,094  INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie conf dir  [/etc/oozie/conf]
2014-03-18 04:22:27,094  INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie conf file [oozie-site.xml]
2014-03-18 04:22:27,243  INFO ConfigurationService:539 - USER[-] GROUP[-] Configuration change via System Property, [oozie.base.url]=[http://localhost:11000/oozie]
2014-03-18 04:22:27,246  WARN ConfigurationService:542 - USER[-] GROUP[-] System property [oozie.https.keystore.pass] no defined in Oozie configuration, ignored
2014-03-18 04:22:27,247  WARN ConfigurationService:542 - USER[-] GROUP[-] System property [oozie.admin.port] no defined in Oozie configuration, ignored
2014-03-18 04:22:27,247  WARN ConfigurationService:542 - USER[-] GROUP[-] System property [oozie.https.port] no defined in Oozie configuration, ignored
2014-03-18 04:22:27,253  WARN Services:542 - USER[-] GROUP[-] System ID [oozie-oozi] exceeds maximum length [10], trimming
2014-03-18 04:22:27,258  INFO Services:539 - USER[-] GROUP[-] Exiting null Entering NORMAL
2014-03-18 04:22:27,260  INFO Services:539 - USER[-] GROUP[-] Initialized runtime directory [/var/lib/oozie/oozie-oozi2413457807675791802.dir]
2014-03-18 04:22:27,322  WARN ConfigurationService:542 - USER[-] GROUP[-] Configuration property [oozie.service.ELService.ext.constants.job-submit] not found, using default []
2014-03-18 04:22:27,323  WARN ConfigurationService:542 - USER[-] GROUP[-] Configuration property [oozie.service.ELService.ext.functions.job-submit] not found, using default []
2014-03-18 04:22:27,434  WARN ConfigUtils:542 - USER[-] GROUP[-] Using a deprecated configuration property [oozie.service.AuthorizationService.security.enabled], should use [oozie.service.AuthorizationService.authorization.enabled].  Please delete the deprecated property in order for the new property to take effect.
2014-03-18 04:22:27,434  WARN AuthorizationService:542 - USER[-] GROUP[-] Oozie running with authorization disabled
2014-03-18 04:22:27,435  INFO HadoopAccessorService:539 - USER[-] GROUP[-] JOB_TRACKER_WHITELIST :[ ], Total entries :0
2014-03-18 04:22:27,436  INFO HadoopAccessorService:539 - USER[-] GROUP[-] NAME_NODE_WHITELIST :[ ], Total entries :0
2014-03-18 04:22:27,436  INFO HadoopAccessorService:539 - USER[-] GROUP[-] Oozie Kerberos Authentication [disabled]
2014-03-18 04:22:27,758  WARN NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-03-18 04:22:27,892  WARN Configuration:824 - fs.default.name is deprecated. Instead, use fs.defaultFS
2014-03-18 04:22:27,910 FATAL Services:533 - USER[-] GROUP[-] E0100: Could not initialize service [org.apache.oozie.service.HadoopAccessorService], org.xml.sax.SAXParseException; Premature end of file.
org.apache.oozie.service.ServiceException: E0100: Could not initialize service [org.apache.oozie.service.HadoopAccessorService], org.xml.sax.SAXParseException; Premature end of file.
        at org.apache.oozie.service.HadoopAccessorService.loadHadoopConfigs(HadoopAccessorService.java:231)
        at org.apache.oozie.service.HadoopAccessorService.init(HadoopAccessorService.java:124)
        at org.apache.oozie.service.HadoopAccessorService.init(HadoopAccessorService.java:85)
        at org.apache.oozie.service.Services.setServiceInternal(Services.java:368)
        at org.apache.oozie.service.Services.setService(Services.java:354)
        at org.apache.oozie.service.Services.loadServices(Services.java:287)
        at org.apache.oozie.service.Services.init(Services.java:208)
        at org.apache.oozie.servlet.ServicesLoader.contextInitialized(ServicesLoader.java:39)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.IOException: org.xml.sax.SAXParseException; Premature end of file.
        at org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:251)
        at org.apache.oozie.util.XConfiguration.(XConfiguration.java:63)
        at org.apache.oozie.service.HadoopAccessorService.loadHadoopConf(HadoopAccessorService.java:181)
        at org.apache.oozie.service.HadoopAccessorService.loadHadoopConfigs(HadoopAccessorService.java:224)
        ... 31 more
Caused by: org.xml.sax.SAXParseException; Premature end of file.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:246)
        ... 34 more






你可能感兴趣的:(myException)