Member since
04-04-2021
2
Posts
2
Kudos Received
0
Solutions
11-22-2024
07:22 AM
For users experiencing trouble uploading a file to a case using the standard ‘UPLOAD FILE(s)’ method from the Case Attachment tab, the following alternatives exist: Option 1: Upload files from the command line 10GB Limit This method utilizes a java program to allow case attachments to be uploaded via the command line. This method is intended for those who are experiencing trouble with the case attachment UI or who prefer to upload a file from the command line. This method also supports proxy parameters How to use: Download the JAR Run the program: Usage: java -jar cloudera.attachment.cli.jar [case_number] [email_address] [file_name...] Example: java -jar cloudera.attachment.cli.jar 55555 customer@company.com logs1.log logs2.log The above example uploads logs1.log and logs2.log to case number 55555 from customer@company.com Supported proxy command line properties include: -Dhttp.proxyHost=, -Dhttp.proxyPort=, -Dhttp.proxyUsername=, -Dhttp.proxyPassword= Example: java -jar -Dhttp.proxyHost=192.x.x.x -Dhttp.proxyPort=8080 cloudera.attachment.cli.jar 55555 customer@company.com logs1.log Option 2: Uploading a file to Cloudera using SFTP The following method should only be used when you are unable to upload a file to a case using either the standard ‘Upload case attachments’ link or the script above . In order to upload a file using SFTP, please follow the below instructions. Download an RSA Key Before you can upload files, you must use the link below to download an RSA key for your account. The RSA key enables you to securely transfer log files and other sensitive information to Cloudera for support and diagnostic purposes. For more information, contact your support representative via the Support ticket portal Note: You may have to change the permissions on the downloaded file to 0600 to use with SFTP. Uploading files to uploads.cloudera.com is secure because Cloudera is using SFTP instead of FTP. To upload a file to uploads.cloudera.com, use the command scp or a similar one such as winscp. The user account you will use for the connection is customers, and you will use your downloaded RSA key for authentication. You will not need a password. Ensure the file(s) being uploaded to the FTP server has permissions for the group to read the file (e.g. chmod 0640) Here is an example of using scp with an RSA key called your_rsa_key to upload a file called logfiles.tgz: localhost: jonathan$ scp -i ~/downloaded_rsa_key ~/logfiles.tgz customers@uploads.cloudera.com:~/ logfiles.tgz 100% 121KB 121.3KB/s 00:00 localhost: jonathan$ Update the related case Once the file(s) has been uploaded to the FTP site, update the case to indicate the files, including file names, have been uploaded to the FTP site. Generating a Public Key A public key is not required for you to upload files; the RSA key is all you need. But if you want to use the same RSA key identity for some other reason, you can generate a public key for your RSA key. To generate the public key for your downloaded RSA key, use the command ssh-keygen -y For example: localhost: jonathan$ ssh-keygen -y Enter file in which the key is (~/.ssh/id_rsa): ~/downloaded_rsa_key
... View more
Labels:
12-12-2021
09:14 PM
2 Kudos
What is CRN? CRN is an acronym for Customer Resource Number and this is a Cloudera-specific identifier for an environment. The CRN uniquely identifies the environment as well as the CDP control plane that is used to create it. Where can I find the CRN? It is located prominently on the Details page of each CDP environment. Steps to find the CRN for an environment: Click Environments from the CDP Management Console in the left panel next to Dashboard Type in the name of the environment in the search bar. In the screenshot here, the search key is "orrep-aw-env" Click on the "Name" of the environment. This should show the details of the environment Click Data Lake Now, click Copy to Clipboard icon next to "crn: ..." in the header This should copy the CRN to the clipboard. Now you can paste it as and where needed.
... View more
Labels: