Member since
04-11-2016
471
Posts
325
Kudos Received
118
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2129 | 03-09-2018 05:31 PM | |
2694 | 03-07-2018 09:45 AM | |
2592 | 03-07-2018 09:31 AM | |
4466 | 03-03-2018 01:37 PM | |
2511 | 10-17-2017 02:15 PM |
07-26-2016
07:55 AM
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF regexp_extract(string subject, string pattern, int index) Returns the string extracted using the pattern. For example,
regexp_extract('foothebar', 'foo(.*?)(bar)', 2) returns 'bar.' Note that
some care is necessary in using predefined character classes: using
'\s' as the second argument will match the letter s; '\\s' is necessary
to match whitespace, etc. The 'index' parameter is the Java regex
Matcher group() method index. See docs/api/java/util/regex/Matcher.html
for more information on the 'index' or Java regex group() method. In your case it will return everything from the start until the first comma (comma included). For example if your text is "abc,def,geh", it will return "abc,". Hope this helps.
... View more
07-25-2016
08:45 AM
Hi @Ram, You may want to have a look here: https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_Ambari_Users_Guide/content/_configuring_notifications.html Ambari gives you the possibility to configure custom notifications and have email alerting. Hope this helps.
... View more
07-25-2016
08:05 AM
1 Kudo
Hi @Mehul Ramani, You may be interested by this thread: https://mail-archives.apache.org/mod_mbox/nifi-users/201604.mbox/%3CBE659B6A-0174-4D04-97D5-640AD1849E14@apache.org%3E On this mailing list, @Jeremy Dyer has posted an example to access Salesforce with OAuth 2.0. I enclosed it to this answer: salesforce-oauth2-login-example.xml I've also posted a blog regarding OAuth here: https://pierrevillard.com/2016/04/12/oauth-1-0a-with-apache-nifi-twitter-api-example/
... View more
07-25-2016
07:50 AM
2 Kudos
Hi @Obaid Salikeen, Another option is to use ExecuteProcess or ExecuteStreamCommand to execute a custom script that will SCP to your remote Linux instance. Otherwise there is a JIRA for a SCP processor: https://issues.apache.org/jira/browse/NIFI-539 Hope this helps.
... View more
07-25-2016
07:44 AM
Hi @Manikandan Durairaj, You must set the 'Twitter Endpoint' property to 'Filter Endpoint' to be able to use the filtering capabilities. Hope this helps.
... View more
07-22-2016
07:46 AM
1 Kudo
Correct. In this case, you'd want to mount your Windows shared folder on your Linux machine [1]. In short, NiFi will be able to access your folder if you are able to access it from your console on your Linux host. [1] https://help.ubuntu.com/community/MountWindowsSharesPermanently
... View more
07-22-2016
06:45 AM
Hi @Ahmad Debbas, I never did it but what you could try is to assign a drive letter (X for example) to your shared folder and then use a path like X:/my/folder in the GetFile processor. https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_fcab_connect_drive.mspx?mfr=true Hope this helps.
... View more
07-22-2016
06:43 AM
4 Kudos
Hi @Ankit Jain, Yes, it is possible to use NiFi to expose REST services using a processor like HandleHttpRequest. You may have a look to this blog: I used NiFi to expose a URL shortener service [1]. This is a basic example but I believe this answer your question. Hope this helps. [1] https://pierrevillard.com/2016/04/10/url-shortener-service-with-apache-nifi/
... View more
07-21-2016
12:50 PM
You may have a look to this document: https://cwiki.apache.org/confluence/display/NIFI/Upgrading+NiFi
... View more
07-21-2016
11:56 AM
3 Kudos
Hi @Ahmad Debbas, I am not sure the fully qualified path is needed, you could try with /CF. Otherwise, a full path would be something like <fs.defaultFS>/CF where <fs.defaultFS> is a property you have in your core-site configuration file (which is needed by the processor). Also take care of the rights: the user running NiFi must have write access into your folder. Hope this helps.
... View more