Member since
02-07-2022
253
Posts
61
Kudos Received
35
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
123 | 10-02-2025 02:18 AM | |
129 | 10-01-2025 05:22 AM | |
1215 | 07-30-2025 09:33 PM | |
492 | 07-15-2025 07:28 PM | |
346 | 07-12-2025 12:47 AM |
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
01-13-2025
03:08 AM
Hello @Riyadbank Thank you for reaching out to the community 1.) First thing: You can consider increasing the heap memory for CM server in /etc/default/cloudera-scm-server file and restart the cloudera-scm-server 2025-01-10 11:03:00,658 WARN JvmPauseMonitor:com.cloudera.enterprise.debug.JvmPauseMonitor: Detected pause in JVM or host machine (e.g. a stop the world GC, or JVM not scheduled): paused approximately 26866ms: GC pool 'ParNew' had collection(s): count=1 time=0ms, GC pool 'ConcurrentMarkSweep' had collection(s): count=1 time=26804ms 2.) Regarding the actual issue Are the hosts heartbeating fine? Do you see any error in the stderr logs for those individual services?
... View more
01-13-2025
02:59 AM
Hello @Lavenda Thank you for reaching out to community Can you please confirm what is the heap assigned to CM server? You can check the same in /etc/default/cloudera-scm-server Also, do you see JVM pauses in /var/log/cloudera-scm-server/cloudera-scm-server.log. If you see JVM pauses in the above logs try increasing the heap for CM server and restart the cloudera-scm-server service (systemctl restart cloudera-scm-server) # cat /var/log/cloudera-scm-server/cloudera-scm-server.log | grep -i "Detected pause in JVM"
... View more
01-07-2025
08:44 AM
Hello @Riyadbank Thank you for reaching out to community Problem 1: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8080020231031074729:073fa5fe-0.x86_64 The above error indicates that perl module is missing please enabled the repositories for RHEL 8 app stream and base os and try to install the perl module and that should fix your issue
... View more