Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Accumulo, mail # user - 1.5 on cdh4u5


+
Ott, Charles H. 2013-12-11, 15:32
+
Ott, Charles H. 2013-12-11, 15:40
+
John Vines 2013-12-11, 15:43
Copy link to this message
-
Re: 1.5 on cdh4u5
Mike Drob 2013-12-11, 15:44
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.
<[EMAIL PROTECTED]>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)*
+
Ott, Charles H. 2013-12-11, 15:53