Code Monkey home page Code Monkey logo

pythonhacks's Introduction

PythonHacks

This repo contains some solved python codes dedicated for below two cases.

  1. Some solved hacker code , which developers will face ( has to solve) during hiring process.
  2. AWS Cloud boto3 module usage - for Lambda and any other services aimed at automation.

pythonhacks's People

Contributors

rekhugopal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonhacks's Issues

awscrt.exceptions.AwsCrtError: AWS_IO_DNS_INVALID_NAME: Host name was invalid for dns resolution.

Unable to resolve this

loop = asyncio.get_event_loop()
Loop
Client <amazon_transcribe.client.TranscribeStreamingClient object at 0x0000024A4129B520>
Traceback (most recent call last):
File "E:\Speech Recognition\AWS_transcribe\main.py", line 79, in
loop.run_until_complete(basic_transcribe())
File "C:\Users\Komal\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "E:\Speech Recognition\AWS_transcribe\main.py", line 66, in basic_transcribe
stream = await client.start_stream_transcription(
File "C:\Users\Komal\AppData\Local\Programs\Python\Python310\lib\site-packages\amazon_transcribe\client.py", line 174, in start_stream_transcription
response = await self._session_manager.make_request(
File "C:\Users\Komal\AppData\Local\Programs\Python\Python310\lib\site-packages\amazon_transcribe\httpsession.py", line 206, in make_request
connection = await self._get_connection(parsed_url)
File "C:\Users\Komal\AppData\Local\Programs\Python\Python310\lib\site-packages\amazon_transcribe\httpsession.py", line 174, in _get_connection
connection = await self._create_connection(parsed_url)
File "C:\Users\Komal\AppData\Local\Programs\Python\Python310\lib\site-packages\amazon_transcribe\httpsession.py", line 143, in _create_connection
connection = await asyncio.wrap_future(connect_future)
awscrt.exceptions.AwsCrtError: AWS_IO_DNS_INVALID_NAME: Host name was invalid for dns resolution.

Fluentd on EKS - pattern not match

Hi,
I'm trying to follow the youtube tutorial on Fluentd on EKS : https://github.com/RekhuGopal/PythonHacks/tree/main/AWS_EKS_Logs_to_CloudwatchLoggroups

All the instructions work as expected however, the logs are not sent to Cloudwatch (i checked the node group role permissions)

When I do a "kubectl pods log ...." on the fluend pod, i see errors like this

[in_tail_container_logs] pattern not match: "2023-02-13T13:43:15.712788146Z stdout F 2023-02-13 13:43:15 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: "2023-02-13T13:43:14.711511137Z stdout F 2023-02-13 13:43:14 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: \"2023-02-13T13:43:13.711206547Z stdout F 2023-02-13 13:43:13 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: \\\"2023-02-13T13:43:12.708360124Z stdout F 2023-02-13 13:43:12 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: \\\\\\\"2023-02-13T13:43:12.680662208Z stdout F 2023-02-13 13:43:12 +0000 [warn]: parameter 'pos_file' in \\\\\\\"\\\"\"""
2023-02-13 13:43:16 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: "2023-02-13T13:43:15.712818447Z stdout F 2023-02-13 13:43:15 +0000 [warn]: #0 [in_tail_container_logs] pattern not match: "2023-02-13T13:43:14.711550364Z stdout F 2023-02-13 13:43:14 +0000 [warn]: #0

Any idea why this is happening?
Is the fluent configuration files up to date?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.