accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Drob <md...@cloudera.com>
Subject Re: 1.5 on cdh4u5
Date Wed, 11 Dec 2013 15:44:34 GMT
It looks like you are running with an improperly configured Java Security
Policy. In the example accumulo-env.sh files there are some lines that look
like:



if [ -f ${ACCUMULO_CONF_DIR}/accumulo.policy ]
then
   POLICY="-Djava.security.manager
-Djava.security.policy=${ACCUMULO_CONF_DIR}/accumulo.policy"
fi
test -z "$ACCUMULO_MONITOR_OPTS" && export
ACCUMULO_MONITOR_OPTS="${POLICY} -Xmx1g -Xms256m"

Does $ACCUMULO_CONF_DIR/accumulo.policy exist on your system? If so, it
looks like you're missing PropertyPermission for the accumulo code. Compare
to line 112 of the example policy file. [2]

Mike

[1]:
https://github.com/apache/accumulo/blob/master/conf/examples/3GB/standalone/accumulo-env.sh?source=c
[2]:
https://github.com/apache/accumulo/blob/master/conf/accumulo.policy.example?source=cc




On Wed, Dec 11, 2013 at 7:32 AM, Ott, Charles H.
<CHARLES.H.OTT@leidos.com>wrote:

> I am having a few issues getting 1.5 to run with cdh4u5 parcels
> installation.
>
> The baseline Accumulo-site.xml did not seem to point to a proper
> classpath, so I have made some modifications to the configuration.
>
> I was able to initialize the database (./accumulo init) and did not
> receive any errors when doing so.
>
>
>
> # vars from my accumulo-env.sh
>
> HADOOP_PREFIX=/opt/cloudera/parcels/CDH/lib/hadoop
>
> HADOOP_CONF_DIR="$HADOOP_PREFIX/etc/hadoop
>
> ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH/lib/zookeeper
>
>
>
> # cdh4 stuff I added to accumulo-env.sh
>
> export HADOOP_HDFS_HOME=/opt/cloudera/parcels/CDH/lib/hadoop-hdfs
>
> export HADOOP_MAPREDUCE_HOME=/opt/cloudera/parcels/CDH/lib/hadoop-mapreduce
>
>
>
> # ACCUMULO_HOME is set as an env var for the ‘hdfs’ user.  Which has
> ownership of the Accumulo home and walogs folder.
>
>
>
> # the accumulo-site.xml general.classpath info
>
> <property>
>
>     <name>general.classpaths</name>
>
>     <value>
>
>       $ACCUMULO_HOME/server/target/classes/,
>
>       $ACCUMULO_HOME/lib/accumulo-server.jar,
>
>       $ACCUMULO_HOME/core/target/classes/,
>
>       $ACCUMULO_HOME/lib/accumulo-core.jar,
>
>       $ACCUMULO_HOME/start/target/classes/,
>
>       $ACCUMULO_HOME/lib/accumulo-start.jar,
>
>       $ACCUMULO_HOME/fate/target/classes/,
>
>       $ACCUMULO_HOME/lib/accumulo-fate.jar,
>
>       $ACCUMULO_HOME/proxy/target/classes/,
>
>       $ACCUMULO_HOME/lib/accumulo-proxy.jar,
>
>       $ACCUMULO_HOME/lib/[^.].*.jar,
>
>       $ZOOKEEPER_HOME/zookeeper[^.].*.jar,
>
>       $HADOOP_CONF_DIR,
>
>       $HADOOP_PREFIX/[^.].*.jar,
>
>       $HADOOP_PREFIX/lib/[^.].*.jar,
>
>       $HADOOP_HDFS_HOME/.*.jar,
>
>       $HADOOP_HDFS_HOME/lib/.*.jar,
>
>       $HADOOP_MAPREDUCE_HOME/.*.jar,
>
>       $HADOOP_MAPREDUCE_HOME/lib/.*.jar
>
>     </value>
>
>     <description>Classpaths that accumulo checks for updates and class
> files.
>
>       When using the Security Manager, please remove the
> ".../target/classes/" values.
>
>     </description>
>
>   </property>
>
>
>
> I have also disabled ipv6, selinux, and dfs.permissions.
>
> Also increases ulimit to 65536, swapiness set to 10, ntpd installed and
> running.
>
> Trying to start Accumulo as the ‘hdfs’ user as my current 1.4.4 cluster is
> running on cdh3u6.
>
>
>
> But, when I run ./start-all.sh I have the following issues:
>
>
>
> 1.)    Monitor thread dies:
>
> *Thread "monitor" died null*
>
> *java.lang.reflect.InvocationTargetException*
>
> *        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.accumulo.start.Main$1.run(Main.java:101)*
>
> *        at java.lang.Thread.run(Thread.java:744)*
>
> *Caused by: java.security.AccessControlException: access denied
> ("java.util.PropertyPermission" "*" "read,write")*
>
> *        at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)*
>
> *        at
> java.security.AccessController.checkPermission(AccessController.java:559)*
>
> *        at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:549)*
>
> *        at
> java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1269)*
>
> *        at java.lang.System.getProperties(System.java:624)*
>
> *        at
> org.apache.commons.configuration.SystemConfiguration.<init>(SystemConfiguration.java:38)*
>
> *        at
> org.apache.accumulo.core.conf.Property.getDefaultValue(Property.java:384)*
>
> *        at
> org.apache.accumulo.core.conf.DefaultConfiguration.iterator(DefaultConfiguration.java:52)*
>
> *        at
> org.apache.accumulo.core.conf.ConfigSanityCheck.validate(ConfigSanityCheck.java:29)*
>
> *        at
> org.apache.accumulo.core.conf.DefaultConfiguration.getInstance(DefaultConfiguration.java:37)*
>
> *        at
> org.apache.accumulo.core.conf.AccumuloConfiguration.getDefaultConfiguration(AccumuloConfiguration.java:153)*
>
> *        at
> org.apache.accumulo.core.conf.AccumuloConfiguration.getSiteConfiguration(AccumuloConfiguration.java:163)*
>
> *        at
> org.apache.accumulo.core.security.SecurityUtil.serverLogin(SecurityUtil.java:39)*
>
> *        at
> org.apache.accumulo.server.monitor.Monitor.main(Monitor.java:451)*
>
> *        ... 6 more*
>
>
>
> 2.)    Master does not start or log anything beyond this:
>
> *log4j:WARN No appenders could be found for logger
> (org.apache.accumulo.start.classloader.AccumuloClassLoader).*
>
> *log4j:WARN Please initialize the log4j system properly.*
>
> *log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> <http://logging.apache.org/log4j/1.2/faq.html#noconfig> for more info.*
>
>
>
>
>

Mime
View raw message