Member since
09-16-2016
12
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1532 | 10-18-2016 12:59 AM |
03-22-2018
01:22 PM
As per Taras' answer; a JOLT transform ended up being exactly what we needed.
... View more
02-09-2018
09:35 PM
Alternately, is there a way to get the size of a JSON array using EvaluateJSONPath?
... View more
02-09-2018
08:42 PM
Maybe there's another way to ask this; I shouldn't pre-suppose dynamic naming is necessary. Say I have this JSON document: {
"boxes": [{
"box": {
"oranges": 2,
"apples": 5
}
},
{
"box": {
"oranges": 2,
"bananas": 7
}
}
]
} I need to then do some work to create something like this: {
"boxes": [{
"box": 1,
"fruits": 2,
"count": 7
},
{
"box": 2,
"fruits": 2,
"count": 9
}
]
} My thinking was first split by box to get a "box" attribute and 2 flowfiles. Then split by contents of each box to create 4 flowfiles each with a "fruit" attribute. But how do I merge back to construct pieces of the final output? The attribute names would be the same with different values. I need for the attribute names to be different (like box.1, box.2, fruit.1, fruit.2) which would be easy using fragment indexes, but I can't seem to name properties dynamically like that. Is there an alternative? Does that make any sense? Thanks, JP
... View more
02-09-2018
08:04 PM
Hi there, I'm in a situation where I need to be able to set the name of a property using Expression Language. Is there any way to do that? I try to create an attribute using an UpdateAttribute processor and put in ${property1} as the property name. Now, property1 is in reference to an existing attribute containing the value "property2". What I'd hope is that the flowfile has a new property added named "property2" but what I end up with is a new property literally named "${property1}". Is this even possible? Thanks, JP
... View more
Labels:
- Labels:
-
Apache NiFi
03-01-2017
02:42 PM
I'm afraid there's not much to elaborate on. We figured out that we were missing java-1.8.0-openjdk-devel. We installed the rpm and then everything was fine again.
... View more
11-07-2016
05:14 PM
1 Kudo
Hi there, I'm using HDP 2.5, not the sandbox but rather the Ambari installation on 7 VMs (3 master, 3 data, 1 edge). Ambari views seems to be working, except I can't delete Hive views. I'll use the Tez view as a baseline. I click on "Views" and expand "TEZ" then select "Tez View": I click "Delete Instance" and get the confirmation screen: I click "OK" and it deletes the view. Now, onto Hive. When I click on "OK" in the deletion confirmation screen I get this: Clicking "more" doesn't provide much detail: It doesn't matter if it's the default Hive view or one I created myself, and now I'm stuck seeing 3 Hive views (I created a third to see if I could delete it). Any ideas? Thanks, JP
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hive
10-18-2016
12:59 AM
Figured it out. I was missing java-1.8.0-openjdk-devel.
... View more
10-17-2016
08:16 PM
Hi there, I'm trying to install HDP 2.5 via Ambari using a local repo (no internet access). At the step "HST Agent Install" on the first master node it's failing with this error: Failed to execute command: cd /tmp/smartsense-view/ ; /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/jar uf smartsense*view*.jar view.xml; Exit code: 127; stdout: ; stderr: /bin/sh: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/jar: No such file or directory Sure enough, /jar is missing: [me@hostname ~]$ ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin
total 188
-rwxr-xr-x 1 root root 7336 Jul 11 00:42 java
-rwxr-xr-x 1 root root 7384 Jul 11 00:42 jjs
-rwxr-xr-x 1 root root 7384 Jul 11 00:42 keytool
-rwxr-xr-x 1 root root 7456 Jul 11 00:42 orbd
-rwxr-xr-x 1 root root 7384 Jul 11 00:42 pack200
-rwxr-xr-x 1 root root 7392 Jul 11 00:42 policytool
-rwxr-xr-x 1 root root 7376 Jul 11 00:42 rmid
-rwxr-xr-x 1 root root 7392 Jul 11 00:42 rmiregistry
-rwxr-xr-x 1 root root 7392 Jul 11 00:42 servertool
-rwxr-xr-x 1 root root 7464 Jul 11 00:42 tnameserv
-rwxr-xr-x 1 root root 107496 Jul 11 00:42 unpack200 yum list installed | grep java- shows: java-1.8.0-openjdk.x86_64 1:1.8.0.101-3.b13.el7_2 @rhel-7-server-rpms
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-3.b13.el7_2 @rhel-7-server-rpms
Java certainly seems to be installed: [me@hostname ~]$ which java
/usr/bin/java
[me@hostname ~]$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Oct 13 11:32 /usr/bin/java -> /etc/alternatives/java
[me@hostname ~]$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 73 Oct 13 11:32 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/java
[me@hostname~]$
I'm pretty much stuck here. Any ideas? Thanks, JP
... View more
Labels:
- Labels:
-
Apache Ambari
-
Hortonworks SmartSense