hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 周梦想 <abloz...@gmail.com>
Subject Re: how do you keep the hbase document correct?
Date Fri, 28 Dec 2012 07:55:08 GMT
hi Stack,

how do you generate the home page of http://hbase.apache.com?I found it's
character code is ok, the charset code is  utf8.

But after I updated from your new code, it still generate unicode16
code,just corrected the meta content.
[zhouhh@Hadoop48 trunk]$ mvn clean -Donepage docbkx:generate-html

book.html:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The Apache HBase&#8482;&#21442;&#32771;&#25351;&#21335;</title>
not like this:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The Apache HBase(tm)参考指南</title>

while I'm compile site, it report an error and exited.
[zhouhh@Hadoop48 trunk]$ mvn clean site
...
[INFO] --- maven-site-plugin:3.1:site (default-site) @ hbase ---
Dec 28, 2012 3:02:07 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting:
org.apache.maven.reporting.exec.DefaultMavenReportExecutor
java.lang.NoClassDefFoundError: org/apache/maven/reporting/MavenReport
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
        at java.lang.Class.getDeclaredMethods(Class.java:1808)
        at
com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:664)
        at
com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:358)
        at
com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:155)
        at
com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:585)
        at
com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:542)
        at
com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:528)
        at
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:833)
        at
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:758)
        at
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:255)
        at
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:204)
        at
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:954)
        at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:987)
        at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:950)
        at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at
com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at
com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:233)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:227)
        at
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:241)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:601)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException:
org.apache.maven.reporting.MavenReport
        at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        ... 63 more

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] HBase ............................................. FAILURE
[3:55.035s]
[INFO] HBase - Common .................................... SKIPPED
...
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.1:site (default-site) on
project hbase: Execution default-site of goal
org.apache.maven.plugins:maven-site-plugin:3.1:site failed: A required
class was missing while executing
org.apache.maven.plugins:maven-site-plugin:3.1:site:
org/apache/maven/reporting/MavenReport
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.1
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/home/zhouhh/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.1/maven-site-plugin-3.1.jar
[ERROR] urls[1] =
file:/home/zhouhh/.m2/repository/org/apache/maven/wagon/wagon-ssh/2.2/wagon-ssh-2.2.jar
[ERROR] urls[2] =
file:/home/zhouhh/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar
[ERROR] urls[3] =
file:/home/zhouhh/.m2/repository/org/apache/maven/wagon/wagon-ssh-common/2.2/wagon-ssh-common-2.2.jar
[ERROR] urls[4] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
[ERROR] urls[5] =
file:/home/zhouhh/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.0.2/maven-reporting-exec-1.0.2.jar
[ERROR] urls[6] =
file:/home/zhouhh/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[7] =
file:/home/zhouhh/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[8] =
file:/home/zhouhh/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[9] =
file:/home/zhouhh/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[10] =
file:/home/zhouhh/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[11] =
file:/home/zhouhh/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[12] =
file:/home/zhouhh/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[13] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[14] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[15] =
file:/home/zhouhh/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[16] =
file:/home/zhouhh/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[17] =
file:/home/zhouhh/.m2/repository/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.jar
[ERROR] urls[18] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.3/doxia-sink-api-1.3.jar
[ERROR] urls[19] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
[ERROR] urls[20] =
file:/home/zhouhh/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[21] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-core/1.3/doxia-core-1.3.jar
[ERROR] urls[22] =
file:/home/zhouhh/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[23] =
file:/home/zhouhh/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
[ERROR] urls[24] =
file:/home/zhouhh/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[25] =
file:/home/zhouhh/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[26] =
file:/home/zhouhh/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[27] =
file:/home/zhouhh/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[28] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.3/doxia-module-xhtml-1.3.jar
[ERROR] urls[29] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.3/doxia-module-apt-1.3.jar
[ERROR] urls[30] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.3/doxia-module-xdoc-1.3.jar
[ERROR] urls[31] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.3/doxia-module-fml-1.3.jar
[ERROR] urls[32] =
file:/home/zhouhh/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] urls[33] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.3/doxia-decoration-model-1.3.jar
[ERROR] urls[34] =
file:/home/zhouhh/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.3/doxia-site-renderer-1.3.jar
[ERROR] urls[35] =
file:/home/zhouhh/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar
[ERROR] urls[36] =
file:/home/zhouhh/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[37] =
file:/home/zhouhh/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
[ERROR] urls[38] =
file:/home/zhouhh/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar
[ERROR] urls[39] =
file:/home/zhouhh/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar
[ERROR] urls[40] =
file:/home/zhouhh/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar
[ERROR] urls[41] =
file:/home/zhouhh/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar
[ERROR] urls[42] =
file:/home/zhouhh/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar
[ERROR] urls[43] =
file:/home/zhouhh/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar
[ERROR] urls[44] =
file:/home/zhouhh/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar
[ERROR] urls[45] =
file:/home/zhouhh/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar
[ERROR] urls[46] =
file:/home/zhouhh/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[47] =
file:/home/zhouhh/.m2/repository/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar
[ERROR] urls[48] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar
[ERROR] urls[49] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar
[ERROR] urls[50] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[51] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[52] =
file:/home/zhouhh/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.10/plexus-utils-1.5.10.jar
[ERROR] urls[53] =
file:/home/zhouhh/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.jar
[ERROR] urls[54] =
file:/home/zhouhh/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
[ERROR] urls[55] =
file:/home/zhouhh/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jetty-util-6.1.25.jar
[ERROR] urls[56] =
file:/home/zhouhh/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[57] =
file:/home/zhouhh/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
null]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.apache.maven.reporting.MavenReport
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[zhouhh@Hadoop48 trunk]$ mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: /home/zhouhh/yarn/maven
Java version: 1.7.0, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.18-194.el5", arch: "amd64", family: "unix"
[zhouhh@Hadoop48 trunk]$ cat /etc/redhat-release
CentOS release 5.5 (Final)
[zhouhh@Hadoop48 trunk]$ uname -a
Linux Hadoop48 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux

site failed: A required class was missing, I don't know how to fix this
issue.

Best Regards,
Andy
2012/12/28 Stack <stack@duboce.net>

> On Thu, Dec 27, 2012 at 8:00 PM, 周梦想 <ablozhou@gmail.com> wrote:
>
> > I have 2 questions:
> >
> > *1. how to compile the docbkx to utf8 charset?*
> > *
> > *
> > I compiled one by maven,
> > [zhouhh@Hadoop48 trunk]$ mvn -Donepage docbkx:generate-html
> >  it looks like this:
> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> > <title>The Apache HBase&#153;&#29992;&#25143;&#25163;&#20876;</title>
> > I wish it looks like this, for the convenience of editing and viewing
> > source code:
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> > <title>The
> > Apache HBase&#153;参考指南</title>
> >
>
>
> Do an update and you should get the changes I just committed as part
> of HBASE-7446 to fix the fact that our reference guide is iso-8859 instead
> of being utf-8.
>
>
>
> > 2.*how to compile it not using maven,just like this in windows:*
> > *
> > *
> > X:\hadoop\hbasedoc-cn>xsltproc -o book.html customization.xsl book.xml
> > warning: failed to load external entity "urn:docbkx:stylesheet"
> > compilation error: file customization.xsl line 24 element import
> > xsl:import : unable to load urn:docbkx:stylesheet
> > it seems there are some resources missing?
> >
>
>
> The customization.xsl imports the docbkx stylesheet.  Its finding it on
> classpath is my guess given the uri above.
>
> Using xltproc, I'd say don't use customization.xsl (There is little in
> there but the addition of comment box on end of each page and just now, the
> setting of the output to be utf-8).  There are a bunch of guides on how to
> generate your html pages from docbook source.  Here is one:
>
> http://codeghar.wordpress.com/2012/02/07/generate-html-and-pdf-from-docbook-in-debian/
> This is the best book I've found on stylesheeting docbook:
> http://www.sagehill.net/docbookxsl/index.html  It has a section on
> xsltproc
> too.
>
> Good luck,
> St.Ack
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message