Member since
06-26-2015
515
Posts
140
Kudos Received
114
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2586 | 09-20-2022 03:33 PM | |
| 6988 | 09-19-2022 04:47 PM | |
| 3691 | 09-11-2022 05:01 PM | |
| 4304 | 09-06-2022 02:23 PM | |
| 6817 | 09-06-2022 04:30 AM |
03-24-2022
02:41 AM
@mystefied_ , Please try this: select
month,
month_total,
month_total / lag(month_total, 1) over (order by month) as percentage_over_previous_month,
sum(month_total) over (order by month) as running_sum,
sum(month_total) over (order by month) / sum(month_total) over (partition by 1) as running_percentage
from (
select
trunc(stock_date, 'MONTH') as month,
sum(stock_price) as month_total
from table4
group by trunc(stock_date, 'MONTH')
) x Cheers, André -- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more
03-24-2022
02:06 AM
1 Kudo
@cjard , I believe this is a bug. Check this out: https://issues.apache.org/jira/browse/IMPALA-2917 I agree that the documentation needs to be fixed as well. André
... View more
03-23-2022
05:00 PM
@MadhuNP , It's hard to say without looking at the logs. If the job failed the log should show some exception messages. If not, more investigation would be required to get to the root case, IMO. André
... View more
03-23-2022
04:56 PM
@mystefied_ , What's the granularity of the data in the table? Do you have one row per day, multiple rows per day? What's the "month price" that you need to consider? Average of the intra-month prices, max, min? ANdré
... View more
03-23-2022
02:59 AM
2 Kudos
Hi @AndreDre1 , You probably have a default NiFi configuration, which uses the single-user-authorizer. This authorizer doesn't have a Users menu in the UI. To see the Users menu you need to switch to another authorizer. For example, if you have a brand new installation of NiFi with the default configuration, follow the steps below: Edit the conf/nifi.properties file and update the following property: nifi.security.user.authorizer=managed-authorizer Add the name of your initial admin in the following two places in conf/authorizers.xml: ... <userGroupProvider> <identifier>file-user-group-provider</identifier> <class>org.apache.nifi.authorization.FileUserGroupProvider</class> <property name="Users File">./conf/users.xml</property> <property name="Legacy Authorized Users File"></property> <property name="Initial User Identity 1">ADMIN_USERNAME_HERE</property> </userGroupProvider> ... <accessPolicyProvider> <identifier>file-access-policy-provider</identifier> <class>org.apache.nifi.authorization.FileAccessPolicyProvider</class> <property name="User Group Provider">file-user-group-provider</property> <property name="Authorizations File">./conf/authorizations.xml</property> <property name="Initial Admin Identity">ADMIN_USERNAME_HERE</property> <property name="Legacy Authorized Users File"></property> <property name="Node Identity 1"></property> <property name="Node Group"></property> </accessPolicyProvider> ... Stop NiFi: ./bin/nifi.sh stop Remove users.xml and authorizations.xml: rm conf/users.xml conf/authorizations.xml Start NiFi: ./bin/nifi.sh start After you login to NiFi you should now be able to see the Users menu: Cheers, André -- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more
03-23-2022
02:14 AM
@mystefied_ , Would you be able to describe in words what is the desired results of the query? The query above doesn't make much sense to me but if you explain what you want to achieve I should be able to help you get the right query. Cheers, André
... View more
03-22-2022
06:10 AM
@krishna123 , Did you manage to get your problem solved? André -- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more
03-22-2022
03:43 AM
Thanks for the explanation, @dmorvant .
From what you described, it seems to me that the ideal solution for this would be to use NiFi Parameters.
You could have 3 different Parameter Contexts, each of them with a different value for database.name.
Each one of the 3 Process Groups would use one of the Parameter Contexts. Then, when you create your DBCPConnectionPool controller service, you can specifyy the Database Connection URL parameter as, for example:
jdbc:postgresql://cdp.100.20.115.239.nip.io:5432/#{database.name}
With this, the controller service of each Process Group would connect to the database defined in the Parameter Context of that group. You don't even need a DBCPConnectionPoolLookup in this case.
Would that address you need?
What the NiFi version that you are using?
André
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more
03-22-2022
03:25 AM
@AzfarB , Which other roles are running on the same node as this Solr role? Could you provide the output of a "sar -r 5 12" command? Cheers, André
... View more
03-21-2022
11:43 PM
1 Kudo
@pandu2022 , Have you updated the properties below for *all* the Impala service roles (ID, catalog and statestore)? principal: When using a load-balancer this should be of the form impala_test/<LB_fqdn>@<REALM>. If not using a LB, this should be impala_test/<host_fqdn>@<REALM>. be_principal: This is only necessary when a LB is being used and should be of the form impala_test/<host_fqdn>@<REALM>. Cheers, André -- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more