Member since
02-07-2022
258
Posts
61
Kudos Received
36
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 360 | 10-18-2025 09:09 PM | |
| 340 | 10-02-2025 02:18 AM | |
| 372 | 10-01-2025 05:22 AM | |
| 1754 | 07-30-2025 09:33 PM | |
| 658 | 07-15-2025 07:28 PM |
03-17-2025
11:47 AM
@Rafiy Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.
... View more
03-10-2025
12:42 AM
Thanks, @SIGOYI, for the update. Glad to know that the issue is fixed now
... View more
03-06-2025
12:24 AM
Hi Thanks for the tips! I will use TLS Encryption for agents. Then try again
... View more
03-02-2025
07:19 AM
@drewski7 The error message says there's no EntityManager with an actual transaction available. That suggests that the code trying to persist the user isn't running within a transactional context. In Spring applications, methods that modify the database usually need to be annotated with `@Transactional` to ensure they run within a transaction. Looking at the stack trace, the error occurs in `XUserMgr$ExternalUserCreator.createExternalUser`, which calls `UserMgr.createUser`, which in turn uses `BaseDao.create`. The `create` method in `BaseDao` is trying to persist an entity but there's no active transaction. So maybe the `createUser` method or the code calling it isn't properly transactional. In version 2.4.0, this worked, so something must have changed in 2.5.0. Perhaps the upgrade introduced changes in how transactions are managed. Maybe a method that was previously transactional no longer is, or the transaction boundaries have shifted. Step 1: Verify Database Schema Compatibility Ranger 2.5.0 may require schema updates. Ensure the database schema is compatible with the new version: Check Upgrade Documentation: Review the Ranger 2.5.0 Release Notes for required schema changes. Example: If migrating from 2.4.0 to 2.5.0, you may need to run SQL scripts like x_portal_user_DDL.sql or apache-ranger-2.5.0-schema-upgrade.sql. Run Schema Upgrade Scripts: Locate the schema upgrade scripts in the Ranger installation directory (ranger-admin/db/mysql/patches) and apply them: mysql -u root -p ranger < apache-ranger-2.5.0-schema-upgrade.sql Validate the Schema: Confirm that the x_portal_user table exists and has the expected columns (e.g., login_id, user_role). Step 2: Check Transaction Management Configuration The error suggests a missing @Transactional annotation or misconfigured transaction manager in Ranger 2.5.0: Review Code/Configuration Changes: Compare the transaction management configurations between Ranger 2.4.0 and 2.5.0. Key files: ranger-admin/ews/webapp/WEB-INF/classes/conf/application.properties ranger-admin/ews/webapp/WEB-INF/classes/spring-beans.xml Apache Ranger JIRA: Search for issues like RANGER-XXXX related to transaction management in Ranger 2.5.0. Ensure Transactional Annotations: In Ranger 2.5.0, the method createUser in UserMgr.java or its caller must be annotated with @Transactional to ensure database operations run in a transaction. @Transactional public void createUser(...) { ... } 3. Debug Transaction Boundaries: Enable transaction logging in log4j.properties to trace transaction activity log4j.logger.org.springframework.transaction=DEBUG log4j.logger.org.springframework.orm.jpa=DEBUG Step 3: Manually Create the User (Temporary Workaround) If the user drew.nicolette is missing from x_portal_user, manually insert it into the database: INSERT INTO x_portal_user (login_id, password, user_role, status) VALUES ('drew.nicolette', 'LDAP_USER_PASSWORD_HASH_IF_APPLICABLE', 'ROLE_USER', 1); Note: This bypasses the transaction error but is not a permanent fix. Step 4: Verify LDAP Configuration Ensure LDAP settings in ranger-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-site.xml are correct for Ranger 2.5.0: <property>
<name>ranger.authentication.method</name>
<value>LDAP</value>
</property>
<property>
<name>ranger.ldap.url</name>
<value>ldap://your-ldap-server:389</value>
</property> Step 5: Check for Known Issues Apache Ranger JIRA: Search for issues like RANGER-XXXX related to transaction management in Ranger 2.5.0. 2. Apply Patches: If a patch exists (e.g., for missing @Transactional annotations), apply it to the Ranger 2.5.0 codebase. Step 6: Test with a New User Attempt to log in with a different LDAP user to see if the issue is specific to drew.nicolette or a systemic problem. If the error persists for all users, focus on transaction configuration or schema issues. If only drew.nicolette fails, check for conflicts in the x_portal_user table (e.g., duplicate entries). Final Checks Logs: Monitor ranger-admin.log and catalina.out for transaction-related errors after applying fixes. Permissions: Ensure the database user has write access to the x_portal_user table. Dependencies: Confirm that Spring and JPA library versions match Ranger 2.5.0 requirements. Happy hadooping
... View more
02-26-2025
06:19 AM
Thank you @upadhyayk04. This helped.
... View more
02-18-2025
11:41 PM
Hello @SLCJ Looks like your paywall credentials are incorrect Please double check those once or generate them again https://community.cloudera.com/t5/Support-Questions/How-do-I-get-repository-credentials/m-p/311137#:~:text=the%20following%20steps%3A-,1.,down%20to%20the%20Credential%20Generator
... View more
02-18-2025
10:36 PM
Hello @pablobhz Thank you for reaching out to the community How are you connecting? Are you providing any trust store while connecting if yes then is the Root certificate added in the truststore
... View more
02-03-2025
02:37 AM
Hello @Marks_08 , Thank you for reaching out on community The good practice would be to install on a fresh OS but yes if we do proper un-installation and cleanup of current CDH installation then it should be good for new installation of CDP Let me know if you have any further queries on this
... View more
01-13-2025
11:51 PM
Hello @Israr Thank you for reaching out to the community Can you please confirm what is the end goal here? Do you want to enable the TLS if yes then which use case?
... View more
01-13-2025
03:13 AM
Hello @cloudera-lasya Thank you for reaching out to cloudera Can you please confirm what error are you facing? Can you please attach some screenshots to check the issue?
... View more