Member since
09-16-2015
30
Posts
13
Kudos Received
3
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1142 | 08-01-2017 06:24 AM | |
163 | 02-13-2017 02:33 AM | |
1104 | 02-13-2017 02:22 AM |
08-01-2017
06:24 AM
2 Kudos
Turns out it was not able to talk to "localhost:37982". Checked “/etc/hosts”, found that there was not "127.0.0.1 localhost". Added it to "hosts" file and restarted NiFi, it worked.
... View more
07-31-2017
12:30 PM
I have a single NiFi node, new installation, but I'm not able to launch NiFi from command line. Any pointer is appreciated. -- HDF 2.1.1.0-2 -- No Ambari -- CentOS 7 In nifi-bootstrap.log 2017-07-31 12:20:23,970 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2017-07-31 12:20:23,971 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: /usr/hdf/2.1.1.0-2/nifi
2017-07-31 12:20:23,971 INFO [main] org.apache.nifi.bootstrap.Command Command: java -classpath /usr/hdf/2.1.1.0-2/nifi/./conf:/usr/hdf/2.1.1.0-2/nifi/./lib/jcl-over-slf4j-1.7.12.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/jul-to-slf4j-1.7.12.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/log4j-over-slf4j-1.7.12.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/logback-classic-1.1.3.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/logback-core-1.1.3.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-properties-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-api-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-runtime-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-documentation-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-framework-api-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/nifi-nar-utils-1.1.0.2.1.1.0-2.jar:/usr/hdf/2.1.1.0-2/nifi/./lib/slf4j-api-1.7.12.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -XX:-AssumeMP -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:ReservedCodeCacheSize=256m -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -XX:+UseCodeCacheFlushing -XX:CodeCacheMinimumFreeSpace=10m -Dnifi.properties.file.path=/usr/hdf/2.1.1.0-2/nifi/./conf/nifi.properties -Dnifi.bootstrap.listen.port=16627 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/usr/hdf/2.1.1.0-2/nifi/logs org.apache.nifi.NiFi
2017-07-31 12:20:24,991 DEBUG [main] org.apache.nifi.bootstrap.RunNiFi Status File: /usr/hdf/2.1.1.0-2/nifi/run/nifi.status
2017-07-31 12:20:24,992 DEBUG [main] org.apache.nifi.bootstrap.RunNiFi Status File: /usr/hdf/2.1.1.0-2/nifi/run/nifi.lock
2017-07-31 12:20:24,992 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi
In nifi-app.log 2017-07-31 12:20:24,456 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 37982
2017-07-31 12:20:24,462 DEBUG [main] org.apache.nifi.BootstrapListener Notifying Bootstrap that local port is 37982
2017-07-31 12:20:24,465 DEBUG [Listen to Bootstrap] org.apache.nifi.BootstrapListener Listening for Bootstrap Requests
2017-07-31 12:20:24,467 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused (Connection refused)
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_141]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_141]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_141]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_141]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_141]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_141]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_141]
at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.NiFi.<init>(NiFi.java:102) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.NiFi.main(NiFi.java:262) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
2017-07-31 12:20:24,470 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server...
2017-07-31 12:20:24,471 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
... View more
Labels:
02-17-2017
12:23 AM
You can probably increase AM memory in "spark.yarn.am.memory", see if it helps. Default is 512m, start with 2g or 4g.
... View more
02-13-2017
02:33 AM
1 Kudo
Per RFC1635, username can be "anonymous" and password can be any strings in general.
... View more
02-13-2017
02:22 AM
1 Kudo
There is a "tableCoder" required in the table definition in catalog. Please refer to this: https://github.com/hortonworks-spark/shc/blob/master/examples/src/main/scala/org/apache/spark/sql/execution/datasources/hbase/Catalog.scala
... View more
02-13-2017
02:17 AM
You can probably specify a dedicated queue for Zeppelin/Spark in capacity scheduler configuration and give it a limit, for example 50% of the total resources.
... View more
02-06-2017
02:32 AM
Hi Samuel, You probably need to copy hbase-site.xml to /etc/spark/conf folder.
... View more
12-19-2016
11:06 PM
1 Kudo
You can check a couple of things: -- which port is STS using? is that port in use? -- check spark-env.sh, find the log directory
... View more
05-19-2016
11:17 AM
1 Kudo
Same here. I was able to build tpcds but not tpch. tpch is failing because the link to download tpch zip is invalid now: curl --output tpch_kit.zip http://www.tpc.org/tpch/spec/tpch_2_16_0.zip WORKAROUND: 1. Go to TPC website to download TPCH_Tools_v2.17.1.zip : http://www.tpc.org/tpc_documents_current_versions/current_specifications.asp 2. Put the zip file to <hive-testbench>/tpch-gen/ and rename to 'tpch_kit.zip' 3. ./tpch-build.sh
... View more
02-02-2016
05:30 AM
I think it's here: https://github.com/shivajid/HortonworksOperationsWorkshop/blob/master/DockerFile
... View more
01-11-2016
10:37 PM
It looks like Ambari uses headless keytab for Spark history server: Execute['/usr/bin/kinit -kt /dsap/etc/security/keytabs/spark.headless.keytab spark-abc@EXAMPLE.COM; '] {'user': 'spark'} Does anyone know why? Also current documentation suggests that we need to create keytabs on host as described here: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_spark-guide/content/ch_installing-kerb-spark.html This is somehow confusing.
... View more
Labels:
12-10-2015
10:24 PM
Thanks for comment @Ali Bajwa Did you try Hive ODBC v2.0.5? (just want to double check)
... View more
12-10-2015
04:40 AM
There was a tutorial that covers the configuration with older Knox version and Hive ODBC driver. http://hortonworks.com/hadoop-tutorial/secure-jdbc-odbc-clients-access-hiveserver2-using-apache-knox/ For Hive ODBC v2.0.5, does the same solution work with HDP 2.3.2 (Knox 0.5)? Or, do we have any known issues?
... View more
Labels:
12-02-2015
01:49 AM
Is Spark 1.5.1 built on top of Hive 1.2? Is there anyway to get this work with Spark 1.3.1?
... View more
11-25-2015
10:29 PM
HDP 2.3.0 Originally running query in spark shell got the following error: scala> sqlContext.sql("select count(*) from hbase_game_telemetry").collect().foreach(println) 15/11/19 17:12:14 INFO ParseDriver: Parsing command: select count(*) from hbase_game_telemetry 15/11/19 17:12:14 INFO ParseDriver: Parse Completed java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/util/Bytes Then we tried the following: -- adding libs to the '--jars' parameter, like: spark-shell —jars /usr/hdp/<hdp version>/hive/lib/hive-hbase-handler.jar,/usr/hdp/<hdp version>/hbase/lib/hbase-common.jar --master yarn-client -- adding spark.executor.extraClassPath to spark-defaults.conf, like: spark.executor.extraClassPath /usr/hdp/<hdp version>/hive/lib/hive-hbase-handler.jar:/usr/hdp/<hdp version>/hbase/lib/hbase-common.jar This seems to resolve the "NoClassDefFoundError" issue, but then we got "NoSuchMethodError" scala> sqlContext.sql("select count(*) from hbase_game_telemetry").collect().foreach(println) 15/11/23 21:02:41 INFO ParseDriver: Parsing command: select count(*) from hbase_game_telemetry 15/11/23 21:02:42 INFO ParseDriver: Parse Completed java.lang.NoSuchMethodError: org.apache.hadoop.hive.serde2.lazy.LazyUtils.getByte(Ljava/lang/String;B)B How can we address this? Is that because Hive 0.13.1 in Spark 1.3.1 does not support this? Thank you
... View more
Labels:
11-03-2015
11:21 PM
Spout try to query zookeeper to get the state and set the offset to prior location. We have retention policy of three days in kafka. So I guess offset moves back to location which does not exists in kafka and its does not pull anymore data. Already checked that in the spout config, the Zookeeper configuration is pointing to Kafka ZooKeeper. Anything else that we're missing here? Thank you.
... View more
Labels:
10-29-2015
01:12 AM
In the current production environment we have 20 data nodes. We are using Sqoop to import data from Netezza into Hadoop. We opened firewall between the Netezza server and the 20 data nodes for Sqoop to work.
We are planning to add 40 new data nodes. For Sqoop functionality not to break, we need to open new firewall rules for all the new nodes. We are also getting requests to import data from other databases such as Teradata and Oracle into Hadoop.
As we have firewalls in place, it is hard to maintain firewall rules between the databases and individual data nodes.
Are there any alternative solutions to this problem, for example using a gateway node.
... View more
Labels:
10-19-2015
10:26 PM
2 Kudos
Is there any bug filed? There are quite some users are hitting this issue I think.
... View more
10-19-2015
10:15 PM
2 Kudos
I'm seeing this too. Haven't found any JIRA on this.
... View more
10-15-2015
06:40 AM
The situation is that disk space has been pretty much used up. And we found the data size under HDFS folder '/apps/hbase/data/.hbck' is quite large. We're thinking of removing these data but not sure if it's good or not? I think these data are the backup for offline meta repair. If my understanding is correct, removing the data means we don't have the option to do offline meta repair later on.
... View more
Labels:
10-13-2015
09:49 PM
No, there is no per-topic configuration
... View more
10-09-2015
12:18 AM
This is a bit confusing. But reading the configs and logs, I'm not able to understand why the log was deleted at such time point. topic 1_persistent was created on 3rd Oct. A new log segment was rolled once the log size reached above 1 GB on 5th Oct:
[2015-10-05 11:55:08,329] INFO Rolled new log segment for '1_persistent-0' in 31 ms. (kafka.log.Log) However, log shows that the first log segment for 1_persistent got deleted after 4 days (7th Oct). Can anyone help me understand why? Thank you. [server.properties] # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# see kafka.server.KafkaConfig for additional details and defaults
############################# Server Basics #############################
# The id of the broker. This must be set to a unique integer for each broker.
broker.id=2041775
############################# Socket Server Settings #############################
listeners=PLAINTEXT://:9092
# The port the socket server listens on
#port=9092
# Hostname the broker will bind to. If not set, the server will bind to all interfaces
host.name=10.204.177.5
# Hostname the broker will advertise to producers and consumers. If not set, it uses the
# value for "host.name" if configured. Otherwise, it will use the value returned from
# java.net.InetAddress.getCanonicalHostName().
advertised.host.name=10.204.177.5
# The port to publish to ZooKeeper for clients to use. If this is not set,
# it will publish the same port that the broker binds to.
advertised.port=9092
# The number of threads handling network requests
num.network.threads=3
# The number of threads doing disk I/O
num.io.threads=8
# The send buffer (SO_SNDBUF) used by the socket server
socket.send.buffer.bytes=102400
# The receive buffer (SO_RCVBUF) used by the socket server
socket.receive.buffer.bytes=102400
# The maximum size of a request that the socket server will accept (protection against OOM)
socket.request.max.bytes=104857600
############################# Log Basics #############################
# A comma seperated list of directories under which to store log files
log.dirs=/var/spool/backup/kafka_logs
# The default number of log partitions per topic. More partitions allow greater
# parallelism for consumption, but this will also result in more files across
# the brokers.
num.partitions=1
# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
# This value is recommended to be increased for installations with data dirs located in RAID array.
num.recovery.threads.per.data.dir=1
############################# Log Flush Policy #############################
# Messages are immediately written to the filesystem but by default we only fsync() to sync
# the OS cache lazily. The following configurations control the flush of data to disk.
# There are a few important trade-offs here:
# 1. Durability: Unflushed data may be lost if you are not using replication.
# 2. Latency: Very large flush intervals may lead to latency spikes when the flush does occur as there will be a lot of data to flush.
# 3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to exceessive seeks.
# The settings below allow one to configure the flush policy to flush data after a period of time or
# every N messages (or both). This can be done globally and overridden on a per-topic basis.
# The number of messages to accept before forcing a flush of data to disk
#log.flush.interval.messages=10000
# The maximum amount of time a message can sit in a log before we force a flush
#log.flush.interval.ms=1000
############################# Log Retention Policy #############################
# The following configurations control the disposal of log segments. The policy can
# be set to delete segments after a period of time, or after a given size has accumulated.
# A segment will be deleted whenever *either* of these criteria are met. Deletion always happens
# from the end of the log.
# The minimum age of a log file to be eligible for deletion
log.retention.hours=168
# A size-based retention policy for logs. Segments are pruned from the log as long as the remaining
# segments don't drop below log.retention.bytes.
#log.retention.bytes=1073741824
# The maximum size of a log segment file. When this size is reached a new log segment will be created.
log.segment.bytes=1073741824
# The interval at which log segments are checked to see if they can be deleted according
# to the retention policies
log.retention.check.interval.ms=300000
# By default the log cleaner is disabled and the log retention policy will default to just delete segments after their retention expires.
# If log.cleaner.enable=true is set the cleaner will be enabled and individual logs can then be marked for log compaction.
log.cleaner.enable=false
############################# Zookeeper #############################
# Zookeeper connection string (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all kafka znodes.
zookeeper.connect=10.204.177.4:2181
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=60000
delete.topic.enable=true
controlled.shutdown.enable=true
log.retention.bytes=1073741824
reserved.broker.max.id=2147483647
[Kafka log] [2015-10-03 17:52:41,580] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent,0] (kafka.server.ReplicaFetcherManager)
[2015-10-03 17:52:41,626] INFO Completed load of log 1_persistent-0 with log end offset 0 (kafka.log.Log)
[2015-10-03 17:52:41,631] INFO Created log for partition [1_persistent,0] in /var/spool/backup/kafka_logs with properties {segment.index.bytes -> 10485760, file.delete.delay.ms -> 60000, segment.bytes -> 1073741824, flush.ms -> 9223372036854775807, delete.retention.ms -> 86400000, index.interval.bytes -> 4096, retention.bytes -> 1073741824, min.insync.replicas -> 1, cleanup.policy -> delete, unclean.leader.election.enable -> true, segment.ms -> 604800000, max.message.bytes -> 1000012, flush.messages -> 9223372036854775807, compression.type -> producer, min.cleanable.dirty.ratio -> 0.5, retention.ms -> 604800000, segment.jitter.ms -> 0}. (kafka.log.LogManager)
[2015-10-03 17:52:41,632] INFO Partition [1_persistent,0] on broker 2041775: No checkpointed highwatermark is found for partition [1_persistent,0] (kafka.cluster.Partition)
[2015-10-03 17:53:02,066] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent,0] (kafka.server.ReplicaFetcherManager)
[2015-10-03 17:53:02,271] INFO Partition [1_persistent,0] on broker 2041775: Expanding ISR for partition [1_persistent,0] from 2041775 to 2041775,2041776 (kafka.cluster.Partition)
[2015-10-03 17:53:02,307] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent,0] (kafka.server.ReplicaFetcherManager)
[2015-10-03 17:53:15,170] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent,0] (kafka.server.ReplicaFetcherManager)
[2015-10-03 17:57:43,288] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent,0] (kafka.server.ReplicaFetcherManager)
[2015-10-03 17:57:43,288] INFO Truncating log 1_persistent-0 to offset 689. (kafka.log.Log)
[2015-10-03 17:57:43,301] INFO [ReplicaFetcherManager on broker 2041775] Added fetcher for partitions List([[1_persistent,0], initOffset 689 to broker BrokerEndPoint(2041776,10.204.177.6,9092)] ) (kafka.server.ReplicaFetcherManager)
[2015-10-05 10:00:15,530] INFO [KafkaApi-2041775] Auto creation of topic 1_persistent_Temp with 1 partitions and replication factor 1 is successful! (kafka.server.KafkaApis)
[2015-10-05 10:00:15,831] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent_Temp,0] (kafka.server.ReplicaFetcherManager)
[2015-10-05 10:00:15,833] INFO Completed load of log 1_persistent_Temp-0 with log end offset 0 (kafka.log.Log)
[2015-10-05 10:00:15,834] INFO Created log for partition [1_persistent_Temp,0] in /var/spool/backup/kafka_logs with properties {segment.index.bytes -> 10485760, file.delete.delay.ms -> 60000, segment.bytes -> 1073741824, flush.ms -> 9223372036854775807, delete.retention.ms -> 86400000, index.interval.bytes -> 4096, retention.bytes -> 1073741824, min.insync.replicas -> 1, cleanup.policy -> delete, unclean.leader.election.enable -> true, segment.ms -> 604800000, max.message.bytes -> 1000012, flush.messages -> 9223372036854775807, compression.type -> producer, min.cleanable.dirty.ratio -> 0.5, retention.ms -> 604800000, segment.jitter.ms -> 0}. (kafka.log.LogManager)
[2015-10-05 10:00:15,836] INFO Partition [1_persistent_Temp,0] on broker 2041775: No checkpointed highwatermark is found for partition [1_persistent_Temp,0] (kafka.cluster.Partition)
[2015-10-05 10:00:22,016] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent_Temp,0] (kafka.server.ReplicaFetcherManager)
[2015-10-05 10:00:22,301] INFO Partition [1_persistent_Temp,0] on broker 2041775: Expanding ISR for partition [1_persistent_Temp,0] from 2041775 to 2041775,2041776 (kafka.cluster.Partition)
[2015-10-05 10:00:22,307] INFO [ReplicaFetcherManager on broker 2041775] Removed fetcher for partitions [1_persistent_Temp,0] (kafka.server.ReplicaFetcherManager)
[2015-10-05 11:55:08,329] INFO Rolled new log segment for '1_persistent-0' in 31 ms. (kafka.log.Log)
[2015-10-07 09:59:22,150] INFO Rolled new log segment for '1_persistent-0' in 9 ms. (kafka.log.Log)
[2015-10-07 10:03:08,055] INFO Scheduling log segment 0 for log 1_persistent-0 for deletion. (kafka.log.Log)
[2015-10-07 10:04:08,067] INFO Deleting segment 0 from log 1_persistent-0. (kafka.log.Log)
[2015-10-07 10:04:09,073] INFO Deleting index /var/spool/backup/kafka_logs/1_persistent-0/00000000000000000000.index.deleted (kafka.log.OffsetIndex)
... View more
Labels:
10-07-2015
12:38 AM
We are validating Hadoop TDE and have moved /apps and /data into encryption zones. The hive.metastore.warehouse.dir is set to /apps/hive/warehouse
There are 2 issues.
1. We cant delete hive tables because Trash is not in the encryption zone. hive> CREATE DATABASE alan_test;
OK
Time taken: 3.027 seconds
hive> use alan_test;
OK
Time taken: 0.315 seconds
hive> CREATE TABLE a(id int);
OK
hive> DROP DATABASE alan_test;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database alan_test is not empty. One or more tables exist.)
2. We can only delete files via hdfs dfs -rm .... if we use the -skipTrash option. [root@devsl1 ~]# sudo -u ssn hdfs dfs -copyFromLocal TEST /apps/hive/
[root@devsl1 ~]# sudo -u ssn hdfs dfs -rm /apps/hive/TEST
15/10/06 15:51:51 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 360 minutes, Emptier interval = 0 minutes.
rm: Failed to move to trash: hdfs://devsl1.eng.ssnsgs.net:8020/apps/hive/TEST: /apps/hive/TEST can't be moved from an encryption zone.
[root@devsl1 ~]# sudo -u ssn hdfs dfs -rm -skipTrash /apps/hive/TEST
Deleted /apps/hive/TEST
I think this is because Hive does not support HDFS TDE yet (HIVE-8065). But just want to make sure it's the case and see if there is any workaround.
... View more
Labels:
10-06-2015
10:01 PM
I forgot to mention that Ranger (XA secure) 3.5 is installed in this cluster.
... View more
10-06-2015
12:48 AM
Hi Deepesh, can you shed some light on this? Does the workaround have to be like oozie-hive-site.xml, or rename to any name is ok? I've tried renaming to hive-config.xml but no luck.
... View more
10-05-2015
11:26 PM
Oozie HIve action failed Oozie Hive action configuration
=================================================================
Using action configuration file /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/action.xml
------------------------
Setting env property for mapreduce.job.credentials.binary to: /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/container_tokens
------------------------
------------------------
Setting env property for tez.credentials.path to: /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/container_tokens
------------------------
<<< Invocation of Main class completed <<<
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], main() threw exception, hive-site.xml (Permission denied)
java.io.FileNotFoundException: hive-site.xml (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at org.apache.oozie.action.hadoop.HiveMain.setUpHiveSite(HiveMain.java:166)
at org.apache.oozie.action.hadoop.HiveMain.run(HiveMain.java:196)
at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:38)
at org.apache.oozie.action.hadoop.HiveMain.main(HiveMain.java:66)
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.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:225)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)
Oozie Launcher failed, finishing Hadoop job gracefully
Oozie action is configured like this: <action name="HivePartitionAction">
<hive xmlns="uri:oozie:hive-action:0.3">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<job-xml>script/hive-site.xml</job-xml>
<job-xml>script/xasecure-audit.xml</job-xml>
<job-xml>script/xasecure-hive-security.xml</job-xml>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<script>script/addPartition.sql</script>
<file>script/xasecure-audit.xml</file>
<file>script/xasecure-hive-security.xml</file>
<file>script/xasecure-policymgr-ssl.xml</file>
<file>script/hive-site.xml</file>
</hive>
<ok to="end"/>
<error to="kill"/>
</action>
-- and the files exist OK in the /script subdirectory of the workflow directory. The files have read/write permission for all users. -- 'hive-site.xml' under /etc/oozie/conf/action-conf/hive is owned by oozie user and set permission 644 Can anyone advise? Thanks.
... View more
Labels:
10-05-2015
10:28 PM
2 Kudos
@deepesh@hortonworks.com This is a good information. Thank you.
... View more
10-04-2015
10:03 PM
1 Kudo
Given a hfds sink configuration : ale.sinks.sink1.hdfs.path = hdfs://ham-dal-0001.corp.wayport.net:8020/prod/hadoop/smallsite/flume_ingest_ale2_hak_3/station/%Y/%m/%d/%H The question is that can we use {variable hostname} in flume.conf file. For example: ale.sinks.sink1.hdfs.path = hdfs://ham-dal-0001.corp.wayport.net:8020/prod/hadoop/smallsite/{variable hostname}/station/%Y/%m/%d/%H
Thank you.
... View more
Labels: