[
https://issues.apache.org/jira/browse/BIGTOP-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Shaposhnik updated BIGTOP-401:
------------------------------------
Attachment: BIGTOP-401.patch.txt
I'm attaching a patch that can be considered an overkill for this particular
JIRA, but it actually paves the way for fixing BIGTOP-22.
The idea here is that all the common init.d logic will reside in init.d.tmp (we
will promote it to a more common location) and the tweaks will be concentrated
in little .svc files.
Basically this is a poor man's templating engine written in shell.
Why shell? Well, I've considered m4, but it would introduce an extra build time
dependency (not a big deal, but still) and the quoting rules of m4 make it a
little bit fragile for using as a templating mechanism for shell code.
I'm open to other suggestions of what to use as a templating engine but I think
shell should be fine for now. Besides, once we do the refactoring substituting
one templating engine with a different one will be a much more trivial exersize.
Finally, please review the content of init.d.tml very, very carefully. It is
the amalgamation of various implementations that we've got in Bigtop but I
haven't really tested how well it works.
> unable to run hadoop-mapreduce-historyserver
> --------------------------------------------
>
> Key: BIGTOP-401
> URL: https://issues.apache.org/jira/browse/BIGTOP-401
> Project: Bigtop
> Issue Type: Bug
> Components: General
> Affects Versions: 0.3.0
> Reporter: Wing Yew Poon
> Assignee: Roman Shaposhnik
> Fix For: 0.3.0
>
> Attachments: BIGTOP-401.patch.txt
>
>
> I installed hadoop-conf-pseudo from
> http://bigtop01.cloudera.org:8080/view/Bigtop-hadoop-0.23/job/Bigtop-hadoop-0.23-Repository/label=centos5/5/artifact/repo/.
> When I try to start hadoop-mapreduce-historyserver, I get:
> Starting Hadoop historyserver daemon (hadoop-historyserver): starting
> historyserver, logging to
> /var/log/hadoop/hadoop--historyserver-localhost.localdomain.out
> Exception in thread "main" java.lang.NoClassDefFoundError: historyserver
> Caused by: java.lang.ClassNotFoundException: historyserver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: historyserver. Program will exit.
> historyserver is stopped
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira